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.000645/0.0006453, allocations: 94.03 kB / 17.31 MB, free: 6.539 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.0006637/0.0006637, allocations: 176 kB / 18.21 MB, free: 5.68 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.102/1.102, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001993/0.0001993, allocations: 11.94 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06963/0.06985, allocations: 50.42 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.1796/0.2494, allocations: 79.1 MB / 431.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02795/0.2774, allocations: 16.46 MB / 448.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009694/0.2871, allocations: 371 kB / 448.4 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001384/0.2885, allocations: 0.6606 MB / 449.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004526/0.2931, allocations: 2.703 MB / 451.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00201/0.2951, allocations: 1.338 MB / 453.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.3062, allocations: 13.65 MB / 466.8 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01231/0.3185, allocations: 11.9 MB / 478.7 MB, free: 5.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002366/0.3209, allocations: 2.226 MB / 480.9 MB, free: 3.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003734/0.3247, allocations: 3.664 MB / 484.6 MB, free: 15.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003999/0.3251, allocations: 244 kB / 484.8 MB, free: 15.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.3272, allocations: 1.533 MB / 486.3 MB, free: 14.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002237/0.3294, allocations: 3.257 MB / 489.6 MB, free: 10.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002401/0.3319, allocations: 3.476 MB / 493.1 MB, free: 7.387 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007193/0.3391, allocations: 10.35 MB / 0.4916 GB, free: 13.01 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3391, allocations: 0 / 0.4916 GB, free: 13.01 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3391, allocations: 0 / 0.4916 GB, free: 13.01 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001043/0.3392, allocations: 0 / 0.4916 GB, free: 13.01 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.0116/0.3508, allocations: 7.309 MB / 0.4988 GB, free: 5.617 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.3508, allocations: 8.031 kB / 0.4988 GB, free: 5.609 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04433/0.3952, allocations: 4.961 MB / 0.5036 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01083/0.406, allocations: 6.365 MB / 0.5098 GB, free: 10.19 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.4063, allocations: 435.7 kB / 0.5102 GB, free: 9.766 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008706/0.4071, allocations: 0.578 MB / 0.5108 GB, free: 9.188 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0232/0.4303, allocations: 17.11 MB / 0.5275 GB, free: 7.125 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001573/0.4305, allocations: 79.27 kB / 0.5276 GB, free: 7.047 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005932/0.4311, allocations: 267.8 kB / 0.5279 GB, free: 6.785 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00383/0.435, allocations: 2.654 MB / 0.5304 GB, free: 4.129 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2493/0.6842, allocations: 14.84 MB / 0.5449 GB, free: 142.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05064/0.7349, allocations: 64.53 MB / 0.6079 GB, free: 88.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01796/0.7529, allocations: 8.827 MB / 0.6166 GB, free: 79.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003928/0.7569, allocations: 5.058 MB / 0.6215 GB, free: 74.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01706/0.7739, allocations: 18.63 MB / 0.6397 GB, free: 56.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.774, allocations: 64.56 kB / 0.6398 GB, free: 55.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 3.987e-06/0.774, allocations: 0 / 0.6398 GB, free: 55.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.3502/1.124, allocations: 75.05 MB / 0.7131 GB, free: 151.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.967e-05/1.124, allocations: 375.2 kB / 0.7134 GB, free: 150.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008761/1.133, allocations: 6.368 MB / 0.7196 GB, free: 150.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007007/1.134, allocations: 87.75 kB / 0.7197 GB, free: 150.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002189/1.136, allocations: 4.75 MB / 0.7244 GB, free: 147.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001322/1.137, allocations: 1.379 MB / 0.7257 GB, free: 146.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00131/1.139, allocations: 0.817 MB / 0.7265 GB, free: 145.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.003e-05/1.139, allocations: 302.7 kB / 0.7268 GB, free: 145.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006871/1.146, allocations: 5.991 MB / 0.7326 GB, free: 143.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007483/1.153, allocations: 11.02 MB / 0.7434 GB, free: 134.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01402/1.167, allocations: 17.95 MB / 0.7609 GB, free: 121.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-05/1.167, allocations: 56.84 kB / 0.761 GB, free: 121.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.03356/1.201, allocations: 23.36 MB / 0.7838 GB, free: 101.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.787e-05/1.201, allocations: 80 kB / 0.7839 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-05/1.201, allocations: 175.4 kB / 0.784 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01853/1.219, allocations: 7.47 MB / 0.7913 GB, free: 93.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00543/1.225, allocations: 2.195 MB / 0.7935 GB, free: 91.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0361/1.261, allocations: 35.64 MB / 0.8283 GB, free: 55.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006676/1.268, allocations: 0.7426 MB / 0.829 GB, free: 54.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006006/1.268, allocations: 0.5312 MB / 0.8295 GB, free: 54.35 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.003793/1.272, allocations: 3.429 MB / 0.8329 GB, free: 50.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007161/1.273, allocations: 0.5747 MB / 0.8334 GB, free: 50.33 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.028/1.301, allocations: 16.97 MB / 0.85 GB, free: 33.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.084e-05/1.301, allocations: 52.7 kB / 0.8501 GB, free: 33.24 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/1.301, allocations: 23.98 kB / 0.8501 GB, free: 33.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.182e-05/1.301, allocations: 15.94 kB / 0.8501 GB, free: 33.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1859/1.487, allocations: 32.17 MB / 0.8815 GB, free: 135.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.664e-05/1.487, allocations: 3.969 kB / 0.8815 GB, free: 135.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002757/1.49, allocations: 0.6052 MB / 0.8821 GB, free: 135.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01922/1.509, allocations: 7.151 MB / 0.8891 GB, free: 135.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004606/1.509, allocations: 59.94 kB / 0.8892 GB, free: 135.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0349/1.544, allocations: 33.91 MB / 0.9223 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.544, allocations: 3.875 kB / 0.9223 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03286/1.577, allocations: 24.61 MB / 0.9463 GB, free: 96.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/1.578, allocations: 0.645 MB / 0.9469 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007443/1.579, allocations: 65.19 kB / 0.947 GB, free: 96.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003477/1.582, allocations: 447.3 kB / 0.9474 GB, free: 95.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008331/1.583, allocations: 250.3 kB / 0.9477 GB, free: 95.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002938/1.584, allocations: 92.62 kB / 0.9477 GB, free: 95.46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004037/1.588, allocations: 4.044 MB / 0.9517 GB, free: 91.42 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.588, allocations: 0 / 0.9517 GB, free: 91.42 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005729/1.593, allocations: 2.288 MB / 0.9539 GB, free: 89.14 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.0007115/1.594, allocations: 284 kB / 0.9542 GB, free: 88.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01521/1.609, allocations: 14.86 MB / 0.9687 GB, free: 74.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.609, allocations: 1.938 kB / 0.9687 GB, free: 74.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00748/1.617, allocations: 6.703 MB / 0.9753 GB, free: 67.35 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005482/1.622, allocations: 0.8161 MB / 0.9761 GB, free: 66.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02128/1.644, allocations: 24.19 MB / 0.9997 GB, free: 42.31 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004114/1.648, allocations: 5.224 MB / 1.005 GB, free: 37.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001878/1.65, allocations: 435.4 kB / 1.005 GB, free: 36.62 MB / 462.1 MB Notification: Performance of SimCode: time 4.41e-07/1.65, allocations: 4 kB / 1.005 GB, free: 36.62 MB / 462.1 MB Notification: Performance of Templates: time 0.3015/1.951, allocations: 207.2 MB / 1.208 GB, free: 4.434 MB / 478.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