Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 113.1 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002063/0.002063, allocations: 213.3 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.509/1.509, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 51.91 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2678, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02201/0.2898, allocations: 18.14 MB / 449.3 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01446/0.3043, allocations: 6.108 MB / 455.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003991/0.3083, allocations: 171.1 kB / 455.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01224/0.3205, allocations: 6.347 MB / 461.9 MB, free: 7.988 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008919/0.3294, allocations: 2.898 MB / 464.8 MB, free: 5.082 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005627/0.3351, allocations: 2.3 MB / 467.1 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0157/0.3508, allocations: 9.707 MB / 476.8 MB, free: 9.055 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01039/0.3612, allocations: 6.232 MB / 483 MB, free: 2.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008333/0.3695, allocations: 3.257 MB / 486.3 MB, free: 15.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009325/0.3788, allocations: 4.464 MB / 490.8 MB, free: 10.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003143/0.382, allocations: 0.7187 MB / 491.5 MB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005383/0.3873, allocations: 1.951 MB / 493.4 MB, free: 8.309 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005915/0.3933, allocations: 3.916 MB / 497.3 MB, free: 4.383 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00923/0.4025, allocations: 4.399 MB / 0.49 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02043/0.4229, allocations: 13.87 MB / 0.5035 GB, free: 2.035 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.4229, allocations: 3.984 kB / 0.5035 GB, free: 2.031 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4229, allocations: 0 / 0.5035 GB, free: 2.031 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000472/0.4234, allocations: 0 / 0.5035 GB, free: 2.031 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.02901/0.4524, allocations: 9.581 MB / 0.5129 GB, free: 8.363 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.4525, allocations: 8.031 kB / 0.5129 GB, free: 8.355 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002799/0.4553, allocations: 1.139 MB / 0.514 GB, free: 7.207 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7008/1.156, allocations: 23.27 MB / 0.5367 GB, free: 94.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01845/1.174, allocations: 7.46 MB / 0.544 GB, free: 92.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002561/1.175, allocations: 436 kB / 0.5444 GB, free: 92.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001682/1.176, allocations: 0.5808 MB / 0.545 GB, free: 92.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02574/1.202, allocations: 16.86 MB / 0.5615 GB, free: 80.92 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002921/1.202, allocations: 79.41 kB / 0.5615 GB, free: 80.84 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001376/1.204, allocations: 270 kB / 0.5618 GB, free: 80.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003677/1.207, allocations: 2.661 MB / 0.5644 GB, free: 77.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02467/1.232, allocations: 14.4 MB / 0.5785 GB, free: 63.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07569/1.308, allocations: 63.6 MB / 0.6406 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02452/1.332, allocations: 7.903 MB / 0.6483 GB, free: 6.93 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006869/1.339, allocations: 4.579 MB / 0.6528 GB, free: 2.344 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03586/1.375, allocations: 17.47 MB / 0.6698 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.297e-05/1.375, allocations: 68.5 kB / 0.6699 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.161e-06/1.375, allocations: 0 / 0.6699 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2686/1.644, allocations: 72.95 MB / 0.7411 GB, free: 8.004 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002496/1.644, allocations: 376.6 kB / 0.7415 GB, free: 7.555 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01335/1.657, allocations: 6.427 MB / 0.7478 GB, free: 1.129 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001149/1.658, allocations: 81.69 kB / 0.7478 GB, free: 1.043 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.2291/1.888, allocations: 5.019 MB / 0.7527 GB, free: 191.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002289/1.89, allocations: 1.436 MB / 0.7541 GB, free: 190.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006787/1.897, allocations: 1.845 MB / 0.7559 GB, free: 190.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.775e-05/1.897, allocations: 302.9 kB / 0.7562 GB, free: 189.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007683/1.904, allocations: 5.662 MB / 0.7618 GB, free: 187.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009404/1.914, allocations: 10.61 MB / 0.7721 GB, free: 179 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01557/1.929, allocations: 17.36 MB / 0.7891 GB, free: 166.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000117/1.929, allocations: 47.28 kB / 0.7891 GB, free: 166.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03857/1.968, allocations: 21.91 MB / 0.8105 GB, free: 148.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/1.968, allocations: 87.05 kB / 0.8106 GB, free: 148.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001585/1.968, allocations: 174.9 kB / 0.8108 GB, free: 148.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01866/1.987, allocations: 6.855 MB / 0.8175 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006761/1.994, allocations: 2.07 MB / 0.8195 GB, free: 139.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0439/2.038, allocations: 36.11 MB / 0.8548 GB, free: 102.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008904/2.047, allocations: 0.7132 MB / 0.8555 GB, free: 102.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002108/2.049, allocations: 0.5112 MB / 0.856 GB, free: 101.7 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.007588/2.056, allocations: 3.427 MB / 0.8593 GB, free: 98.32 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002239/2.058, allocations: 0.617 MB / 0.8599 GB, free: 97.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03234/2.091, allocations: 16.02 MB / 0.8756 GB, free: 81.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.023e-05/2.091, allocations: 44 kB / 0.8756 GB, free: 81.56 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.158e-05/2.091, allocations: 16 kB / 0.8756 GB, free: 81.54 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000106/2.091, allocations: 19.92 kB / 0.8756 GB, free: 81.52 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05624/2.147, allocations: 31.19 MB / 0.9061 GB, free: 49.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.85e-05/2.147, allocations: 0 / 0.9061 GB, free: 49.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003145/2.151, allocations: 0.6086 MB / 0.9067 GB, free: 49.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01766/2.168, allocations: 6.436 MB / 0.913 GB, free: 42.89 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008998/2.169, allocations: 60 kB / 0.913 GB, free: 42.83 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03894/2.208, allocations: 34.34 MB / 0.9466 GB, free: 8.148 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/2.208, allocations: 4 kB / 0.9466 GB, free: 8.145 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2686/2.477, allocations: 23.51 MB / 0.9695 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002319/2.479, allocations: 0.5807 MB / 0.9701 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00237/2.481, allocations: 60 kB / 0.9702 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005091/2.486, allocations: 429.6 kB / 0.9706 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00137/2.488, allocations: 263.4 kB / 0.9708 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003448/2.488, allocations: 97.58 kB / 0.9709 GB, free: 169.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006074/2.494, allocations: 4.104 MB / 0.9749 GB, free: 168.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/2.494, allocations: 0 / 0.9749 GB, free: 168.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01025/2.504, allocations: 2.184 MB / 0.977 GB, free: 167.9 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.03583/2.54, allocations: 24.3 MB / 1.001 GB, free: 153.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01789/2.558, allocations: 13.65 MB / 1.014 GB, free: 139.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/2.558, allocations: 5.781 kB / 1.014 GB, free: 139.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008771/2.567, allocations: 6.028 MB / 1.02 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.006477/2.573, allocations: 0.9413 MB / 1.021 GB, free: 132.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1439/2.717, allocations: 102.9 MB / 1.121 GB, free: 22.11 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005975/2.723, allocations: 5.261 MB / 1.127 GB, free: 16.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006267/2.73, allocations: 3.029 MB / 1.13 GB, free: 13.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004644/2.734, allocations: 3.389 MB / 1.133 GB, free: 10.38 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/2.734, allocations: 0 / 1.133 GB, free: 10.38 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4418/3.176, allocations: 172.3 MB / 1.301 GB, free: 66.28 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.12/31.29, allocations: 4.062 kB / 1.301 GB, free: 66.28 MB / 0.5607 GB " [Timeout remaining time 629] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 35.21074903081171]