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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 181.8 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 47.92 kB / 370.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2586, allocations: 52.18 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0211/0.2797, allocations: 18.28 MB / 440.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.2924, allocations: 6.106 MB / 447 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003109/0.2955, allocations: 171.1 kB / 447.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01191/0.3074, allocations: 6.355 MB / 453.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007949/0.3153, allocations: 2.945 MB / 456.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005144/0.3205, allocations: 2.311 MB / 458.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01446/0.3349, allocations: 9.51 MB / 468.3 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01039/0.3453, allocations: 6.241 MB / 474.5 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00547/0.3508, allocations: 3.261 MB / 477.8 MB, free: 7.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006929/0.3577, allocations: 4.468 MB / 482.3 MB, free: 2.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002125/0.3598, allocations: 0.7148 MB / 483 MB, free: 1.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004466/0.3643, allocations: 1.974 MB / 485 MB, free: 15.96 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005296/0.3696, allocations: 3.923 MB / 488.9 MB, free: 12.03 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009184/0.3788, allocations: 4.419 MB / 493.3 MB, free: 7.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0197/0.3985, allocations: 13.93 MB / 0.4954 GB, free: 9.609 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3985, allocations: 0 / 0.4954 GB, free: 9.609 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3985, allocations: 0 / 0.4954 GB, free: 9.609 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004733/0.399, allocations: 0 / 0.4954 GB, free: 9.609 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.0302/0.4292, allocations: 9.581 MB / 0.5047 GB, free: 15.95 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.4292, allocations: 8.031 kB / 0.5047 GB, free: 15.94 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003492/0.4327, allocations: 1.139 MB / 0.5058 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3005/0.7333, allocations: 23.28 MB / 0.5286 GB, free: 7.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3914/1.125, allocations: 7.875 MB / 0.5362 GB, free: 101.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005395/1.125, allocations: 440.9 kB / 0.5367 GB, free: 101.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002029/1.127, allocations: 0.5792 MB / 0.5372 GB, free: 101.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02435/1.152, allocations: 16.86 MB / 0.5537 GB, free: 93.69 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002001/1.152, allocations: 90.53 kB / 0.5538 GB, free: 93.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005898/1.152, allocations: 266.1 kB / 0.554 GB, free: 93.41 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003259/1.156, allocations: 2.661 MB / 0.5566 GB, free: 90.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02211/1.178, allocations: 14.39 MB / 0.5707 GB, free: 76.38 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06947/1.247, allocations: 63.61 MB / 0.6328 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01889/1.266, allocations: 7.9 MB / 0.6405 GB, free: 4.039 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004742/1.271, allocations: 4.581 MB / 0.645 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03261/1.303, allocations: 17.46 MB / 0.6621 GB, free: 14.08 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.669e-05/1.303, allocations: 60.56 kB / 0.6621 GB, free: 14.02 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.531e-06/1.303, allocations: 3.938 kB / 0.6621 GB, free: 14.01 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2511/1.555, allocations: 72.96 MB / 0.7334 GB, free: 5.418 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002425/1.555, allocations: 380.6 kB / 0.7337 GB, free: 4.965 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2117/1.766, allocations: 6.436 MB / 0.74 GB, free: 182 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001054/1.768, allocations: 80.2 kB / 0.7401 GB, free: 182 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003837/1.771, allocations: 5.02 MB / 0.745 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001707/1.773, allocations: 1.434 MB / 0.7464 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002704/1.776, allocations: 1.846 MB / 0.7482 GB, free: 178 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.295e-05/1.776, allocations: 305.9 kB / 0.7485 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005954/1.782, allocations: 5.665 MB / 0.754 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007815/1.79, allocations: 10.62 MB / 0.7644 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01646/1.806, allocations: 17.36 MB / 0.7813 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002746/1.806, allocations: 49.69 kB / 0.7814 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03796/1.844, allocations: 21.92 MB / 0.8028 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.212e-05/1.844, allocations: 87.75 kB / 0.8029 GB, free: 136.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001398/1.845, allocations: 171.4 kB / 0.803 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01754/1.862, allocations: 6.861 MB / 0.8097 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006392/1.868, allocations: 2.066 MB / 0.8118 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0386/1.907, allocations: 36.1 MB / 0.847 GB, free: 90.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00789/1.915, allocations: 0.7285 MB / 0.8477 GB, free: 90.09 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/1.916, allocations: 0.5038 MB / 0.8482 GB, free: 89.59 MB / 0.5294 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.005975/1.922, allocations: 3.419 MB / 0.8516 GB, free: 86.16 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001686/1.924, allocations: 0.6208 MB / 0.8522 GB, free: 85.53 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02722/1.951, allocations: 16.03 MB / 0.8678 GB, free: 69.44 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.463e-05/1.951, allocations: 55.98 kB / 0.8679 GB, free: 69.38 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.404e-05/1.951, allocations: 16 kB / 0.8679 GB, free: 69.37 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.502e-05/1.951, allocations: 15.94 kB / 0.8679 GB, free: 69.35 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05083/2.002, allocations: 31.19 MB / 0.8984 GB, free: 37.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-05/2.002, allocations: 4 kB / 0.8984 GB, free: 37.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002971/2.005, allocations: 0.6086 MB / 0.899 GB, free: 37.16 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01691/2.022, allocations: 6.433 MB / 0.9052 GB, free: 30.71 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001012/2.023, allocations: 63.98 kB / 0.9053 GB, free: 30.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2638/2.287, allocations: 34.34 MB / 0.9388 GB, free: 180.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/2.287, allocations: 6.625 kB / 0.9388 GB, free: 180.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03588/2.323, allocations: 23.51 MB / 0.9618 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002015/2.325, allocations: 0.5781 MB / 0.9624 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00154/2.326, allocations: 61.25 kB / 0.9624 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004098/2.331, allocations: 437.8 kB / 0.9628 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001101/2.332, allocations: 260.9 kB / 0.9631 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003215/2.332, allocations: 88.53 kB / 0.9632 GB, free: 173.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005754/2.338, allocations: 4.11 MB / 0.9672 GB, free: 172.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/2.338, allocations: 0 / 0.9672 GB, free: 172.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008479/2.346, allocations: 2.199 MB / 0.9693 GB, free: 172.1 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.03491/2.381, allocations: 24.28 MB / 0.993 GB, free: 153.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01826/2.399, allocations: 13.65 MB / 1.006 GB, free: 139.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/2.399, allocations: 2 kB / 1.006 GB, free: 139.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008938/2.408, allocations: 6.031 MB / 1.012 GB, free: 133.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008456/2.417, allocations: 0.9415 MB / 1.013 GB, free: 132.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1554/2.572, allocations: 103 MB / 1.114 GB, free: 22.04 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007286/2.58, allocations: 5.271 MB / 1.119 GB, free: 16.73 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007323/2.587, allocations: 3.029 MB / 1.122 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006077/2.593, allocations: 3.397 MB / 1.125 GB, free: 10.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.182e-06/2.593, allocations: 0 / 1.125 GB, free: 10.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4418/3.035, allocations: 172.2 MB / 1.293 GB, free: 69.51 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.75/30.79, allocations: 8.062 kB / 1.293 GB, free: 69.5 MB / 0.5607 GB " [Timeout remaining time 629] (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 --stepSize=0.0009996 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 34.53205659496598]