Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001125/0.001125, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001056/0.001056, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 47.92 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08314/0.08427, allocations: 46.63 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01775/0.1021, allocations: 18.58 MB / 347.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01127/0.1134, allocations: 6.154 MB / 353.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002304/0.1157, allocations: 143.6 kB / 353.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009952/0.1257, allocations: 6.262 MB / 359.9 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007364/0.1331, allocations: 2.856 MB / 362.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004521/0.1376, allocations: 2.284 MB / 365 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01091/0.1486, allocations: 8.835 MB / 373.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1696/0.3182, allocations: 8.431 MB / 382.3 MB, free: 16.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006176/0.3244, allocations: 3.202 MB / 385.5 MB, free: 16.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007409/0.3319, allocations: 4.184 MB / 389.6 MB, free: 16.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003234/0.3351, allocations: 0.7165 MB / 390.4 MB, free: 16.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005448/0.3406, allocations: 1.9 MB / 392.3 MB, free: 16.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005673/0.3463, allocations: 3.829 MB / 396.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01038/0.3567, allocations: 4.158 MB / 400.3 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01437/0.3711, allocations: 13.24 MB / 413.5 MB, free: 7.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.3712, allocations: 0 / 413.5 MB, free: 7.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3712, allocations: 0 / 413.5 MB, free: 7.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004803/0.3717, allocations: 3.969 kB / 413.5 MB, free: 7.562 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02039/0.3921, allocations: 8.935 MB / 422.4 MB, free: 1.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.3921, allocations: 12.84 kB / 422.4 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04/0.4321, allocations: 4.85 MB / 427.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01614/0.4483, allocations: 6.7 MB / 434 MB, free: 7.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003321/0.4487, allocations: 433.2 kB / 434.4 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001985/0.4507, allocations: 0.5827 MB / 435 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03183/0.4825, allocations: 17.06 MB / 452.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002518/0.4828, allocations: 81.8 kB / 452.1 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007357/0.4836, allocations: 270.1 kB / 452.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004206/0.4878, allocations: 2.658 MB / 455.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02941/0.5172, allocations: 14.79 MB / 469.8 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08583/0.6031, allocations: 64.34 MB / 0.5217 GB, free: 2.172 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02243/0.6256, allocations: 8.768 MB / 0.5302 GB, free: 9.262 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006133/0.6317, allocations: 5.071 MB / 0.5352 GB, free: 4.188 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2077/0.8394, allocations: 18.65 MB / 0.5534 GB, free: 151 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.8395, allocations: 66.94 kB / 0.5535 GB, free: 150.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.002e-06/0.8395, allocations: 0 / 0.5535 GB, free: 150.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.321/1.161, allocations: 74.05 MB / 0.6258 GB, free: 94.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.666e-05/1.161, allocations: 372.6 kB / 0.6261 GB, free: 93.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007125/1.168, allocations: 6.43 MB / 0.6324 GB, free: 87.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008733/1.169, allocations: 81.7 kB / 0.6325 GB, free: 87.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001865/1.171, allocations: 4.764 MB / 0.6371 GB, free: 82.69 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001198/1.172, allocations: 1.374 MB / 0.6385 GB, free: 81.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002512/1.174, allocations: 1.974 MB / 0.6404 GB, free: 79.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.446e-05/1.174, allocations: 309 kB / 0.6407 GB, free: 79.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006232/1.181, allocations: 5.988 MB / 0.6465 GB, free: 73.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008149/1.189, allocations: 11.02 MB / 0.6573 GB, free: 59.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0163/1.205, allocations: 17.96 MB / 0.6748 GB, free: 39.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.98e-05/1.205, allocations: 48 kB / 0.6749 GB, free: 39.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2154/1.421, allocations: 23.34 MB / 0.6977 GB, free: 132.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/1.421, allocations: 78.44 kB / 0.6978 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002169/1.421, allocations: 171.8 kB / 0.6979 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0231/1.444, allocations: 7.44 MB / 0.7052 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008173/1.452, allocations: 2.19 MB / 0.7073 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04403/1.496, allocations: 38.1 MB / 0.7445 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008369/1.505, allocations: 0.7471 MB / 0.7453 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001637/1.506, allocations: 0.5262 MB / 0.7458 GB, free: 116.5 MB / 446.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.005486/1.512, allocations: 3.438 MB / 0.7491 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/1.513, allocations: 0.5693 MB / 0.7497 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02846/1.542, allocations: 16.96 MB / 0.7663 GB, free: 98.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.607e-05/1.542, allocations: 51.98 kB / 0.7663 GB, free: 98.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.61e-05/1.542, allocations: 16 kB / 0.7663 GB, free: 98.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-05/1.542, allocations: 15.94 kB / 0.7663 GB, free: 98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04549/1.587, allocations: 32.06 MB / 0.7976 GB, free: 65.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.472e-05/1.588, allocations: 4.25 kB / 0.7977 GB, free: 65.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003001/1.591, allocations: 0.6102 MB / 0.7982 GB, free: 65.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01863/1.609, allocations: 7.01 MB / 0.8051 GB, free: 58.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007827/1.61, allocations: 68.84 kB / 0.8052 GB, free: 57.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03893/1.649, allocations: 36.29 MB / 0.8406 GB, free: 21.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/1.649, allocations: 11.92 kB / 0.8406 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2031/1.852, allocations: 24.59 MB / 0.8646 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004894/1.857, allocations: 1.655 MB / 0.8662 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001863/1.859, allocations: 65.64 kB / 0.8663 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004978/1.864, allocations: 449.3 kB / 0.8667 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001201/1.865, allocations: 250.3 kB / 0.867 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003888/1.865, allocations: 92.59 kB / 0.8671 GB, free: 131.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00687/1.872, allocations: 4.084 MB / 0.8711 GB, free: 129.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.273e-06/1.872, allocations: 3.438 kB / 0.8711 GB, free: 129.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009416/1.882, allocations: 2.292 MB / 0.8733 GB, free: 129.5 MB / 446.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.0009873/1.883, allocations: 278 kB / 0.8736 GB, free: 129.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01938/1.902, allocations: 14.89 MB / 0.8881 GB, free: 123.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.902, allocations: 0 / 0.8881 GB, free: 123.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008779/1.911, allocations: 6.704 MB / 0.8946 GB, free: 120.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005218/1.916, allocations: 0.8907 MB / 0.8955 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02603/1.942, allocations: 20.01 MB / 0.9151 GB, free: 106.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005453/1.948, allocations: 5.281 MB / 0.9202 GB, free: 102.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006057/1.954, allocations: 3.021 MB / 0.9232 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001615/1.956, allocations: 383.4 kB / 0.9235 GB, free: 99.86 MB / 446.1 MB Notification: Performance of SimCode: time 7.02e-07/1.956, allocations: 0 / 0.9235 GB, free: 99.86 MB / 446.1 MB Notification: Performance of Templates: time 0.2905/2.246, allocations: 105.5 MB / 1.027 GB, free: 121.3 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches