Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001094/0.001094, allocations: 117.7 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001114, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2589, allocations: 50.52 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01371/0.2727, allocations: 13.46 MB / 422.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.2828, allocations: 4.867 MB / 427.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00266/0.2855, allocations: 91.69 kB / 427.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007595/0.2932, allocations: 4.171 MB / 431.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005277/0.2985, allocations: 2.124 MB / 433.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00256/0.3011, allocations: 1.096 MB / 434.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007809/0.3089, allocations: 6.072 MB / 440.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00713/0.316, allocations: 5.278 MB / 445.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004563/0.3206, allocations: 2.162 MB / 448.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004672/0.3253, allocations: 2.867 MB / 450.9 MB, free: 7.211 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00152/0.3268, allocations: 0.4922 MB / 451.4 MB, free: 6.719 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003502/0.3304, allocations: 1.623 MB / 453 MB, free: 5.094 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003512/0.3339, allocations: 2.595 MB / 455.6 MB, free: 2.492 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005417/0.3393, allocations: 2.941 MB / 458.6 MB, free: 15.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01247/0.3518, allocations: 9.625 MB / 468.2 MB, free: 5.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.3519, allocations: 0 / 468.2 MB, free: 5.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3519, allocations: 0 / 468.2 MB, free: 5.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003286/0.3522, allocations: 0 / 468.2 MB, free: 5.879 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01726/0.3695, allocations: 6.196 MB / 474.4 MB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.3695, allocations: 8.031 kB / 474.4 MB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001567/0.3711, allocations: 0.9285 MB / 475.3 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03493/0.4061, allocations: 6.016 MB / 481.3 MB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009613/0.4157, allocations: 4.241 MB / 485.6 MB, free: 4.324 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002519/0.416, allocations: 312.1 kB / 485.9 MB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001215/0.4172, allocations: 443.6 kB / 486.3 MB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02279/0.44, allocations: 12.32 MB / 498.6 MB, free: 6.523 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001389/0.4402, allocations: 59.48 kB / 498.7 MB, free: 6.465 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004825/0.4407, allocations: 187.9 kB / 498.9 MB, free: 6.281 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002989/0.4437, allocations: 2.031 MB / 0.4892 GB, free: 4.246 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01975/0.4635, allocations: 10.36 MB / 0.4993 GB, free: 9.871 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2842/0.7477, allocations: 43.9 MB / 0.5422 GB, free: 112 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/0.7585, allocations: 4.81 MB / 0.5469 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002012/0.7605, allocations: 1.972 MB / 0.5488 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008234/0.7688, allocations: 7.074 MB / 0.5557 GB, free: 108.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.7688, allocations: 56.66 kB / 0.5558 GB, free: 108.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 3.387e-06/0.7688, allocations: 0 / 0.5558 GB, free: 108.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.05529/0.8241, allocations: 19 MB / 0.5743 GB, free: 95.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.8242, allocations: 205.9 kB / 0.5745 GB, free: 95.52 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004608/0.8288, allocations: 4.472 MB / 0.5789 GB, free: 91.03 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000207/0.8291, allocations: 61.69 kB / 0.5789 GB, free: 90.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001339/0.8304, allocations: 3.56 MB / 0.5824 GB, free: 87.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004821/0.8309, allocations: 0.8311 MB / 0.5832 GB, free: 86.58 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/0.8321, allocations: 1.266 MB / 0.5845 GB, free: 85.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.845e-05/0.8321, allocations: 301.1 kB / 0.5847 GB, free: 85 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002473/0.8346, allocations: 2.238 MB / 0.5869 GB, free: 82.76 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003596/0.8382, allocations: 5.977 MB / 0.5928 GB, free: 74.99 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006551/0.8448, allocations: 8.918 MB / 0.6015 GB, free: 64.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.371e-05/0.8449, allocations: 40 kB / 0.6015 GB, free: 64.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.012/0.8569, allocations: 9.05 MB / 0.6103 GB, free: 55.22 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.457e-05/0.8569, allocations: 64 kB / 0.6104 GB, free: 55.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.694e-05/0.857, allocations: 132 kB / 0.6105 GB, free: 55.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003154/0.8602, allocations: 1.208 MB / 0.6117 GB, free: 53.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003387/0.8636, allocations: 1.415 MB / 0.6131 GB, free: 52.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008599/0.8722, allocations: 8.008 MB / 0.6209 GB, free: 44.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003939/0.8762, allocations: 339.5 kB / 0.6212 GB, free: 43.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004143/0.8766, allocations: 380 kB / 0.6216 GB, free: 43.56 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002928/0.8795, allocations: 2.486 MB / 0.624 GB, free: 41.06 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005449/0.8801, allocations: 402.8 kB / 0.6244 GB, free: 40.66 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006357/0.8864, allocations: 3.896 MB / 0.6282 GB, free: 36.75 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.402e-05/0.8865, allocations: 22.34 kB / 0.6282 GB, free: 36.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.8865, allocations: 8 kB / 0.6282 GB, free: 36.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/0.8865, allocations: 19.95 kB / 0.6283 GB, free: 36.71 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/0.901, allocations: 9.939 MB / 0.638 GB, free: 26.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.901, allocations: 8 kB / 0.638 GB, free: 26.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.9023, allocations: 327.5 kB / 0.6383 GB, free: 26.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002891/0.9052, allocations: 0.9923 MB / 0.6393 GB, free: 25.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001341/0.9053, allocations: 39.98 kB / 0.6393 GB, free: 25.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007677/0.913, allocations: 6.691 MB / 0.6458 GB, free: 18.47 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.913, allocations: 7.938 kB / 0.6458 GB, free: 18.46 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008726/0.9218, allocations: 6.614 MB / 0.6523 GB, free: 11.77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009232/0.9227, allocations: 455.6 kB / 0.6527 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004137/0.9231, allocations: 41.88 kB / 0.6528 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.9246, allocations: 115.9 kB / 0.6529 GB, free: 11.15 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.9248, allocations: 140.9 kB / 0.653 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.925, allocations: 67.98 kB / 0.6531 GB, free: 10.95 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003163/0.9281, allocations: 2.82 MB / 0.6558 GB, free: 8.125 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9281, allocations: 4 kB / 0.6558 GB, free: 8.121 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004185/0.9323, allocations: 1.158 MB / 0.657 GB, free: 6.969 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008995/0.9413, allocations: 7.314 MB / 0.6641 GB, free: 15.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008452/0.9498, allocations: 5.539 MB / 0.6695 GB, free: 10.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/0.9498, allocations: 1.281 kB / 0.6695 GB, free: 10.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002613/0.9525, allocations: 1.847 MB / 0.6713 GB, free: 8.188 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003342/0.9558, allocations: 0.5754 MB / 0.6719 GB, free: 7.621 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07563/1.031, allocations: 51.28 MB / 0.722 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005883/1.037, allocations: 3.867 MB / 0.7257 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004704/1.042, allocations: 1.938 MB / 0.7276 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00342/1.046, allocations: 2.284 MB / 0.7299 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/1.046, allocations: 0 / 0.7299 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3593/1.405, allocations: 84.87 MB / 0.8128 GB, free: 124 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.95/27.35, allocations: 11.23 kB / 0.8128 GB, free: 124 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches