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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 90.77 kB / 16.65 MB, free: 6.59 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.001239/0.00124, allocations: 182.8 kB / 17.56 MB, free: 6.203 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.452/1.452, allocations: 223.3 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003179/0.000318, allocations: 8.531 kB / 301.5 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1041, allocations: 50.41 MB / 351.9 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.271/0.3752, allocations: 79.1 MB / 431 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04338/0.4186, allocations: 16.46 MB / 447.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01964/0.4383, allocations: 371 kB / 447.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002843/0.4412, allocations: 0.6684 MB / 448.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008449/0.4496, allocations: 2.697 MB / 451.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003681/0.4533, allocations: 1.35 MB / 452.6 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01744/0.4708, allocations: 13.64 MB / 466.2 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01926/0.4901, allocations: 11.9 MB / 478.1 MB, free: 5.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005374/0.4955, allocations: 2.226 MB / 480.4 MB, free: 3.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006727/0.5023, allocations: 3.664 MB / 484 MB, free: 15.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001786/0.5041, allocations: 248 kB / 484.3 MB, free: 15.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004398/0.5085, allocations: 1.533 MB / 485.8 MB, free: 14.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005029/0.5136, allocations: 3.229 MB / 489 MB, free: 10.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007654/0.5213, allocations: 3.686 MB / 492.7 MB, free: 7.199 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01859/0.5399, allocations: 12.94 MB / 0.4938 GB, free: 10.21 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.5399, allocations: 0 / 0.4938 GB, free: 10.21 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5399, allocations: 0 / 0.4938 GB, free: 10.21 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005603/0.5405, allocations: 0 / 0.4938 GB, free: 10.21 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.02764/0.5682, allocations: 7.761 MB / 0.5014 GB, free: 2.367 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.5682, allocations: 8.031 kB / 0.5014 GB, free: 2.359 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004957/0.5732, allocations: 1.135 MB / 0.5025 GB, free: 1.215 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3385/0.9117, allocations: 23.87 MB / 0.5258 GB, free: 9.309 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01881/0.9305, allocations: 7.833 MB / 0.5335 GB, free: 1.398 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004615/0.931, allocations: 431.9 kB / 0.5339 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002496/0.9335, allocations: 0.5893 MB / 0.5344 GB, free: 396 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.372/1.306, allocations: 16.91 MB / 0.5509 GB, free: 143.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003193/1.306, allocations: 81.98 kB / 0.551 GB, free: 143.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001028/1.307, allocations: 270.1 kB / 0.5513 GB, free: 143.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004197/1.311, allocations: 2.651 MB / 0.5539 GB, free: 142.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02704/1.338, allocations: 14.46 MB / 0.568 GB, free: 132.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06763/1.406, allocations: 63.94 MB / 0.6304 GB, free: 67.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0209/1.427, allocations: 8.696 MB / 0.6389 GB, free: 58.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004773/1.432, allocations: 4.919 MB / 0.6437 GB, free: 53.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02127/1.453, allocations: 18.1 MB / 0.6614 GB, free: 35.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/1.453, allocations: 64.5 kB / 0.6615 GB, free: 35.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.951e-06/1.453, allocations: 0 / 0.6615 GB, free: 35.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4305/1.884, allocations: 73.83 MB / 0.7336 GB, free: 146.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/1.884, allocations: 376.1 kB / 0.7339 GB, free: 146.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008493/1.892, allocations: 6.425 MB / 0.7402 GB, free: 143.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001015/1.893, allocations: 81.66 kB / 0.7403 GB, free: 143.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002428/1.896, allocations: 4.841 MB / 0.745 GB, free: 140.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001689/1.897, allocations: 1.37 MB / 0.7464 GB, free: 139.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/1.899, allocations: 0.7392 MB / 0.7471 GB, free: 138.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.148e-05/1.899, allocations: 308.3 kB / 0.7474 GB, free: 138.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007201/1.906, allocations: 5.663 MB / 0.7529 GB, free: 136.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008534/1.914, allocations: 10.62 MB / 0.7633 GB, free: 127 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01629/1.931, allocations: 17.36 MB / 0.7802 GB, free: 107.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001336/1.931, allocations: 48 kB / 0.7803 GB, free: 107.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03853/1.969, allocations: 21.99 MB / 0.8017 GB, free: 85.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001853/1.97, allocations: 82.17 kB / 0.8018 GB, free: 85.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002327/1.97, allocations: 172 kB / 0.802 GB, free: 85.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01942/1.989, allocations: 6.892 MB / 0.8087 GB, free: 78.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007006/1.996, allocations: 2.074 MB / 0.8107 GB, free: 76.47 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04077/2.037, allocations: 34.01 MB / 0.8439 GB, free: 42.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009823/2.047, allocations: 0.7176 MB / 0.8446 GB, free: 41.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00252/2.05, allocations: 0.5085 MB / 0.8451 GB, free: 40.84 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * 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 (1015): * Single equations (assignments): 1008 * 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.009267/2.059, allocations: 3.421 MB / 0.8485 GB, free: 37.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002621/2.061, allocations: 0.5939 MB / 0.8491 GB, free: 36.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03138/2.093, allocations: 16.11 MB / 0.8648 GB, free: 20.62 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.863e-05/2.093, allocations: 51.98 kB / 0.8648 GB, free: 20.57 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.014e-05/2.093, allocations: 16 kB / 0.8649 GB, free: 20.55 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.403e-05/2.093, allocations: 15.94 kB / 0.8649 GB, free: 20.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2857/2.379, allocations: 31.44 MB / 0.8956 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.083e-05/2.379, allocations: 2.531 kB / 0.8956 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003176/2.382, allocations: 0.6072 MB / 0.8962 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01864/2.401, allocations: 6.575 MB / 0.9026 GB, free: 132.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007329/2.402, allocations: 62.88 kB / 0.9027 GB, free: 132.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03652/2.438, allocations: 32.31 MB / 0.9342 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/2.438, allocations: 4 kB / 0.9342 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03735/2.476, allocations: 23.56 MB / 0.9572 GB, free: 87.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00229/2.478, allocations: 0.63 MB / 0.9578 GB, free: 86.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002408/2.48, allocations: 63.98 kB / 0.9579 GB, free: 86.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005451/2.486, allocations: 432.2 kB / 0.9583 GB, free: 86.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001506/2.487, allocations: 246.6 kB / 0.9585 GB, free: 85.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006523/2.488, allocations: 92.92 kB / 0.9586 GB, free: 85.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006587/2.495, allocations: 4.111 MB / 0.9627 GB, free: 81.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.01e-07/2.495, allocations: 0 / 0.9627 GB, free: 81.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009347/2.504, allocations: 2.203 MB / 0.9648 GB, free: 79.6 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.03667/2.541, allocations: 24.33 MB / 0.9886 GB, free: 55.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02061/2.561, allocations: 14.25 MB / 1.002 GB, free: 41.14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/2.561, allocations: 4 kB / 1.002 GB, free: 41.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0096/2.571, allocations: 6.562 MB / 1.009 GB, free: 34.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00886/2.58, allocations: 0.8841 MB / 1.01 GB, free: 33.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3944/2.974, allocations: 124.2 MB / 1.131 GB, free: 79.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00543/2.98, allocations: 5.267 MB / 1.136 GB, free: 73.81 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007206/2.987, allocations: 3.032 MB / 1.139 GB, free: 70.79 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004644/2.992, allocations: 3.389 MB / 1.142 GB, free: 67.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.172e-06/2.992, allocations: 0 / 1.142 GB, free: 67.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4167/3.408, allocations: 164.2 MB / 1.303 GB, free: 110.4 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/3.409, allocations: 249.5 kB / 1.303 GB, free: 110.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.865/9.273, allocations: 0 / 1.303 GB, free: 110.1 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > 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