Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 109.7 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.8 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 42.67 kB / 300.6 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 49.45 MB / 350.1 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2916/0.4078, allocations: 81.06 MB / 431.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04184/0.4497, allocations: 16.53 MB / 447.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02022/0.47, allocations: 375 kB / 448 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01136/0.4814, allocations: 6.305 MB / 454.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008446/0.4899, allocations: 2.685 MB / 457 MB, free: 9.805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005186/0.4952, allocations: 2.191 MB / 459.2 MB, free: 7.613 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01622/0.5114, allocations: 13.63 MB / 472.8 MB, free: 9.953 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0111/0.5225, allocations: 8.281 MB / 481.1 MB, free: 1.605 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005749/0.5283, allocations: 2.835 MB / 483.9 MB, free: 14.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006789/0.5352, allocations: 4.44 MB / 488.4 MB, free: 10.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002385/0.5376, allocations: 500 kB / 488.9 MB, free: 9.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004852/0.5424, allocations: 1.779 MB / 490.6 MB, free: 8.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005044/0.5475, allocations: 3.624 MB / 494.3 MB, free: 4.406 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007426/0.555, allocations: 3.919 MB / 498.2 MB, free: 476 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01268/0.5677, allocations: 10.61 MB / 0.4969 GB, free: 5.828 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.5677, allocations: 4 kB / 0.4969 GB, free: 5.824 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.5677, allocations: 0 / 0.4969 GB, free: 5.824 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005305/0.5683, allocations: 0 / 0.4969 GB, free: 5.824 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.0285/0.5968, allocations: 8.907 MB / 0.5056 GB, free: 12.83 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.5969, allocations: 8.031 kB / 0.5056 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04447/0.6413, allocations: 4.847 MB / 0.5103 GB, free: 7.961 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01679/0.6582, allocations: 6.372 MB / 0.5165 GB, free: 1.512 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004402/0.6587, allocations: 435.7 kB / 0.517 GB, free: 1.086 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002581/0.6613, allocations: 0.578 MB / 0.5175 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.381/1.042, allocations: 17.05 MB / 0.5342 GB, free: 144.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003813/1.043, allocations: 80.09 kB / 0.5342 GB, free: 144.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001641/1.044, allocations: 265.3 kB / 0.5345 GB, free: 144.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005109/1.049, allocations: 2.655 MB / 0.5371 GB, free: 144.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03027/1.08, allocations: 14.79 MB / 0.5515 GB, free: 140.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07319/1.153, allocations: 64.52 MB / 0.6145 GB, free: 81.24 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02111/1.174, allocations: 8.771 MB / 0.6231 GB, free: 72.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005609/1.18, allocations: 5.07 MB / 0.6281 GB, free: 67.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02934/1.209, allocations: 18.64 MB / 0.6463 GB, free: 48.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/1.209, allocations: 72.5 kB / 0.6463 GB, free: 48.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.542e-06/1.209, allocations: 0 / 0.6463 GB, free: 48.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4704/1.68, allocations: 73.98 MB / 0.7186 GB, free: 150.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002123/1.68, allocations: 375.1 kB / 0.7189 GB, free: 150.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01512/1.695, allocations: 6.366 MB / 0.7251 GB, free: 148.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001259/1.696, allocations: 83.45 kB / 0.7252 GB, free: 148.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004416/1.701, allocations: 4.752 MB / 0.7299 GB, free: 145.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002638/1.704, allocations: 1.378 MB / 0.7312 GB, free: 144.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006835/1.71, allocations: 1.983 MB / 0.7331 GB, free: 143.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.718e-05/1.711, allocations: 301.1 kB / 0.7334 GB, free: 143.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008682/1.719, allocations: 5.991 MB / 0.7393 GB, free: 141 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01193/1.731, allocations: 11.02 MB / 0.75 GB, free: 132 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01958/1.751, allocations: 17.96 MB / 0.7676 GB, free: 117.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002687/1.751, allocations: 48 kB / 0.7676 GB, free: 117.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04626/1.797, allocations: 23.34 MB / 0.7904 GB, free: 94.51 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001555/1.798, allocations: 76.94 kB / 0.7905 GB, free: 94.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002343/1.798, allocations: 172.9 kB / 0.7907 GB, free: 94.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02099/1.819, allocations: 7.436 MB / 0.7979 GB, free: 86.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007663/1.827, allocations: 2.192 MB / 0.8001 GB, free: 84.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04289/1.869, allocations: 35.56 MB / 0.8348 GB, free: 48.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009811/1.879, allocations: 0.7448 MB / 0.8355 GB, free: 47.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002293/1.882, allocations: 0.5273 MB / 0.836 GB, free: 47.39 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.006838/1.889, allocations: 3.437 MB / 0.8394 GB, free: 43.95 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001623/1.89, allocations: 0.5708 MB / 0.84 GB, free: 43.37 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03014/1.92, allocations: 16.96 MB / 0.8565 GB, free: 26.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.239e-05/1.92, allocations: 44 kB / 0.8566 GB, free: 26.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.575e-05/1.92, allocations: 16 kB / 0.8566 GB, free: 26.28 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.432e-05/1.921, allocations: 19.94 kB / 0.8566 GB, free: 26.26 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2549/2.175, allocations: 32.15 MB / 0.888 GB, free: 134.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-05/2.176, allocations: 3.688 kB / 0.888 GB, free: 134.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003329/2.179, allocations: 0.6039 MB / 0.8886 GB, free: 134.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01985/2.199, allocations: 7.125 MB / 0.8955 GB, free: 133.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009962/2.2, allocations: 62.61 kB / 0.8956 GB, free: 133.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04238/2.242, allocations: 33.84 MB / 0.9287 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/2.242, allocations: 0 / 0.9287 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04079/2.283, allocations: 24.59 MB / 0.9527 GB, free: 89.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/2.285, allocations: 0.6308 MB / 0.9533 GB, free: 89.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002591/2.288, allocations: 66.62 kB / 0.9533 GB, free: 89.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005283/2.293, allocations: 447.1 kB / 0.9538 GB, free: 88.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001734/2.295, allocations: 246.6 kB / 0.954 GB, free: 88.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008599/2.296, allocations: 91.94 kB / 0.9541 GB, free: 88.57 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007007/2.303, allocations: 4.056 MB / 0.9581 GB, free: 84.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.31e-07/2.303, allocations: 0 / 0.9581 GB, free: 84.53 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01117/2.314, allocations: 2.292 MB / 0.9603 GB, free: 82.25 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001694/2.316, allocations: 286.2 kB / 0.9606 GB, free: 81.99 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02116/2.337, allocations: 14.84 MB / 0.9751 GB, free: 67.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.26e-05/2.337, allocations: 4 kB / 0.9751 GB, free: 67.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01026/2.347, allocations: 6.705 MB / 0.9816 GB, free: 60.47 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008176/2.355, allocations: 0.8338 MB / 0.9824 GB, free: 59.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03633/2.392, allocations: 24.1 MB / 1.006 GB, free: 35.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007342/2.399, allocations: 5.224 MB / 1.011 GB, free: 30.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002756/2.402, allocations: 445 kB / 1.011 GB, free: 29.82 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/2.402, allocations: 0 / 1.011 GB, free: 29.82 MB / 462.1 MB Notification: Performance of Templates: time 0.6405/3.042, allocations: 208.7 MB / 1.215 GB, free: 152.3 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches