Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001742/0.001742, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002493/0.002493, allocations: 213.9 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 230.5 MB / 257.4 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] 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.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 67.84 kB / 377.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2482, allocations: 53.4 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02383/0.272, allocations: 18.15 MB / 449.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01392/0.286, allocations: 6.096 MB / 455.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003784/0.2897, allocations: 171.1 kB / 455.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01278/0.3025, allocations: 6.351 MB / 461.9 MB, free: 7.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008676/0.3112, allocations: 2.891 MB / 464.8 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005529/0.3167, allocations: 2.296 MB / 467.1 MB, free: 2.605 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01509/0.3318, allocations: 9.716 MB / 476.9 MB, free: 8.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01053/0.3424, allocations: 6.24 MB / 483.1 MB, free: 2.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009579/0.3519, allocations: 3.253 MB / 486.3 MB, free: 15.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009306/0.3612, allocations: 4.468 MB / 490.8 MB, free: 10.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002646/0.3639, allocations: 0.7148 MB / 491.5 MB, free: 10.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005297/0.3692, allocations: 1.951 MB / 493.5 MB, free: 8.125 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005972/0.3752, allocations: 3.912 MB / 497.4 MB, free: 4.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008715/0.3839, allocations: 4.407 MB / 0.49 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02019/0.4041, allocations: 13.87 MB / 0.5036 GB, free: 1.855 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4041, allocations: 0 / 0.5036 GB, free: 1.855 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4041, allocations: 4 kB / 0.5036 GB, free: 1.852 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005247/0.4046, allocations: 3.938 kB / 0.5036 GB, free: 1.848 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.03158/0.4362, allocations: 9.585 MB / 0.5129 GB, free: 8.176 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.4362, allocations: 8.031 kB / 0.513 GB, free: 8.168 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004503/0.4407, allocations: 1.131 MB / 0.5141 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7433/1.184, allocations: 23.27 MB / 0.5368 GB, free: 94.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02027/1.204, allocations: 7.46 MB / 0.5441 GB, free: 92.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002811/1.205, allocations: 436.6 kB / 0.5445 GB, free: 92.22 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001963/1.207, allocations: 0.5831 MB / 0.5451 GB, free: 92.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02644/1.233, allocations: 16.86 MB / 0.5615 GB, free: 80.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000216/1.233, allocations: 79.41 kB / 0.5616 GB, free: 80.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006888/1.234, allocations: 270 kB / 0.5619 GB, free: 80.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003406/1.237, allocations: 2.655 MB / 0.5644 GB, free: 77.69 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02536/1.263, allocations: 14.4 MB / 0.5785 GB, free: 63.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07354/1.336, allocations: 63.6 MB / 0.6406 GB, free: 14.54 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02409/1.36, allocations: 7.903 MB / 0.6483 GB, free: 6.59 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00714/1.367, allocations: 4.578 MB / 0.6528 GB, free: 2.004 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03522/1.403, allocations: 17.47 MB / 0.6699 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.757e-05/1.403, allocations: 68.5 kB / 0.6699 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.592e-06/1.403, allocations: 0 / 0.6699 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2651/1.668, allocations: 72.95 MB / 0.7412 GB, free: 7.664 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002652/1.668, allocations: 376.6 kB / 0.7415 GB, free: 7.215 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.013/1.681, allocations: 6.424 MB / 0.7478 GB, free: 0.793 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001006/1.682, allocations: 85.69 kB / 0.7479 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.229/1.911, allocations: 5.016 MB / 0.7528 GB, free: 191.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001929/1.913, allocations: 1.437 MB / 0.7542 GB, free: 190.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00293/1.916, allocations: 1.845 MB / 0.756 GB, free: 189.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.462e-05/1.916, allocations: 306.6 kB / 0.7563 GB, free: 189.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006653/1.923, allocations: 5.66 MB / 0.7618 GB, free: 187.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007999/1.931, allocations: 10.62 MB / 0.7722 GB, free: 178.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01646/1.947, allocations: 17.36 MB / 0.7891 GB, free: 166.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001281/1.947, allocations: 53.09 kB / 0.7892 GB, free: 166.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03676/1.984, allocations: 21.92 MB / 0.8106 GB, free: 148 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.828e-05/1.984, allocations: 82.5 kB / 0.8107 GB, free: 147.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001219/1.984, allocations: 168 kB / 0.8108 GB, free: 147.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0179/2.002, allocations: 6.856 MB / 0.8175 GB, free: 140.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006465/2.009, allocations: 2.066 MB / 0.8195 GB, free: 138.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04016/2.049, allocations: 36.11 MB / 0.8548 GB, free: 102.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008544/2.057, allocations: 0.7203 MB / 0.8555 GB, free: 101.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001447/2.059, allocations: 0.5078 MB / 0.856 GB, free: 101.2 MB / 0.545 GB 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.005283/2.064, allocations: 3.423 MB / 0.8593 GB, free: 97.84 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001368/2.065, allocations: 0.6178 MB / 0.86 GB, free: 97.21 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02763/2.093, allocations: 16.02 MB / 0.8756 GB, free: 81.12 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-05/2.093, allocations: 47.98 kB / 0.8756 GB, free: 81.07 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-05/2.093, allocations: 16 kB / 0.8757 GB, free: 81.06 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.969e-05/2.093, allocations: 19.94 kB / 0.8757 GB, free: 81.04 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05042/2.144, allocations: 31.2 MB / 0.9061 GB, free: 49.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.854e-05/2.144, allocations: 1.812 kB / 0.9061 GB, free: 49.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003068/2.147, allocations: 0.6125 MB / 0.9067 GB, free: 48.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01736/2.164, allocations: 6.428 MB / 0.913 GB, free: 42.39 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008217/2.165, allocations: 67.91 kB / 0.9131 GB, free: 42.33 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03837/2.203, allocations: 34.33 MB / 0.9466 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/2.203, allocations: 11.94 kB / 0.9466 GB, free: 7.645 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2553/2.459, allocations: 23.5 MB / 0.9696 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/2.461, allocations: 0.5783 MB / 0.9701 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001958/2.463, allocations: 66.75 kB / 0.9702 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004644/2.467, allocations: 426.8 kB / 0.9706 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001242/2.468, allocations: 264.5 kB / 0.9709 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004041/2.469, allocations: 93.81 kB / 0.971 GB, free: 169.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005302/2.474, allocations: 4.109 MB / 0.975 GB, free: 168 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/2.474, allocations: 0 / 0.975 GB, free: 168 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008059/2.482, allocations: 2.189 MB / 0.9771 GB, free: 167.8 MB / 0.545 GB 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.03473/2.517, allocations: 24.28 MB / 1.001 GB, free: 152.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01988/2.537, allocations: 13.65 MB / 1.014 GB, free: 139.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/2.537, allocations: 0 / 1.014 GB, free: 139.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009114/2.546, allocations: 6.032 MB / 1.02 GB, free: 133.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005583/2.551, allocations: 0.9321 MB / 1.021 GB, free: 132.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1459/2.697, allocations: 102.9 MB / 1.121 GB, free: 21.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00545/2.703, allocations: 5.265 MB / 1.127 GB, free: 16.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006089/2.709, allocations: 3.029 MB / 1.13 GB, free: 13.43 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00462/2.714, allocations: 3.389 MB / 1.133 GB, free: 10.04 MB / 0.545 GB Notification: Performance of SimCode: time 1.793e-06/2.714, allocations: 0 / 1.133 GB, free: 10.04 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4609/3.174, allocations: 172.2 MB / 1.301 GB, free: 66.06 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.89/31.06, allocations: 0 / 1.301 GB, free: 66.06 MB / 0.5607 GB " [Timeout remaining time 629] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 34.89700985699892]