Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001488/0.001488, allocations: 102.8 kB / 21.96 MB, free: 5.215 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.001557/0.001557, allocations: 214.5 kB / 25.26 MB, free: 3.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 207.7 MB / 236.1 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 54.58 kB / 348 MB, free: 9.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2497, allocations: 49.15 MB / 397.1 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01838/0.2681, allocations: 15.97 MB / 413.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01449/0.2826, allocations: 5.939 MB / 419 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004057/0.2867, allocations: 174.7 kB / 419.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0115/0.2982, allocations: 6.084 MB / 425.3 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008598/0.3068, allocations: 2.963 MB / 428.3 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005256/0.312, allocations: 2.269 MB / 430.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01337/0.3254, allocations: 8.831 MB / 439.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009395/0.3348, allocations: 6.242 MB / 445.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005647/0.3404, allocations: 3.288 MB / 448.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007269/0.3477, allocations: 4.503 MB / 453.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002282/0.35, allocations: 0.7188 MB / 454.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004749/0.3547, allocations: 1.818 MB / 455.9 MB, free: 8.105 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005668/0.3604, allocations: 3.958 MB / 459.9 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007053/0.3674, allocations: 3.436 MB / 463.3 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0182/0.3856, allocations: 14.05 MB / 477.4 MB, free: 2.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3856, allocations: 0 / 477.4 MB, free: 2.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3856, allocations: 0 / 477.4 MB, free: 2.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004192/0.3861, allocations: 0 / 477.4 MB, free: 2.582 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02927/0.4153, allocations: 9.643 MB / 487 MB, free: 8.859 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.4154, allocations: 15.92 kB / 487 MB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002676/0.4157, allocations: 183.7 kB / 487.2 MB, free: 8.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00322/0.4189, allocations: 1.147 MB / 488.4 MB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2771/0.696, allocations: 23.28 MB / 0.4996 GB, free: 204 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.019/0.715, allocations: 8.561 MB / 0.508 GB, free: 7.559 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004002/0.7154, allocations: 435.5 kB / 0.5084 GB, free: 7.133 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00193/0.7173, allocations: 0.5895 MB / 0.509 GB, free: 6.543 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03312/0.7504, allocations: 17.09 MB / 0.5257 GB, free: 4.445 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002493/0.7507, allocations: 75.47 kB / 0.5258 GB, free: 4.371 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008908/0.7516, allocations: 267.8 kB / 0.526 GB, free: 4.109 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004481/0.7561, allocations: 2.654 MB / 0.5286 GB, free: 1.445 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02802/0.7841, allocations: 14.41 MB / 0.5427 GB, free: 3.016 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3675/1.152, allocations: 60.34 MB / 0.6016 GB, free: 101.7 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01838/1.17, allocations: 7.89 MB / 0.6093 GB, free: 98.29 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003996/1.174, allocations: 4.587 MB / 0.6138 GB, free: 95.93 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0193/1.193, allocations: 16.53 MB / 0.6299 GB, free: 81.34 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/1.193, allocations: 64.31 kB / 0.63 GB, free: 81.27 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.783e-06/1.193, allocations: 0 / 0.63 GB, free: 81.27 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2086/1.402, allocations: 73.4 MB / 0.7017 GB, free: 8.457 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/1.402, allocations: 376.6 kB / 0.702 GB, free: 8.008 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007473/1.41, allocations: 6.509 MB / 0.7084 GB, free: 1.605 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008675/1.41, allocations: 81.7 kB / 0.7085 GB, free: 1.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003434/1.414, allocations: 5.037 MB / 0.7134 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002064/1.416, allocations: 1.431 MB / 0.7148 GB, free: 11.48 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003141/1.419, allocations: 1.845 MB / 0.7166 GB, free: 9.617 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/1.419, allocations: 305.1 kB / 0.7169 GB, free: 9.316 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008053/1.427, allocations: 5.659 MB / 0.7224 GB, free: 3.648 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01289/1.44, allocations: 10.82 MB / 0.733 GB, free: 6.344 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02237/1.462, allocations: 17.37 MB / 0.7499 GB, free: 2.539 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001279/1.463, allocations: 48 kB / 0.75 GB, free: 2.492 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.2119/1.675, allocations: 21.92 MB / 0.7714 GB, free: 185 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/1.675, allocations: 78.75 kB / 0.7715 GB, free: 185 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/1.675, allocations: 170 kB / 0.7716 GB, free: 185 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01873/1.694, allocations: 6.845 MB / 0.7783 GB, free: 185 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006348/1.7, allocations: 2.074 MB / 0.7803 GB, free: 185 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0369/1.737, allocations: 35.73 MB / 0.8152 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007195/1.744, allocations: 0.7226 MB / 0.8159 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008991/1.745, allocations: 0.5117 MB / 0.8164 GB, free: 165.6 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.004147/1.749, allocations: 3.429 MB / 0.8198 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.75, allocations: 0.6212 MB / 0.8204 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02457/1.775, allocations: 16.03 MB / 0.836 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.757e-05/1.775, allocations: 48 kB / 0.8361 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/1.775, allocations: 19.94 kB / 0.8361 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.825e-05/1.775, allocations: 19.92 kB / 0.8361 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04013/1.815, allocations: 29.93 MB / 0.8654 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.927e-05/1.815, allocations: 7.984 kB / 0.8654 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002828/1.818, allocations: 0.6006 MB / 0.8659 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01595/1.834, allocations: 6.442 MB / 0.8722 GB, free: 108.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007422/1.835, allocations: 67.92 kB / 0.8723 GB, free: 108.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03422/1.869, allocations: 33.98 MB / 0.9055 GB, free: 74.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/1.869, allocations: 4 kB / 0.9055 GB, free: 74.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03179/1.901, allocations: 23.52 MB / 0.9285 GB, free: 50.97 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003437/1.904, allocations: 1.586 MB / 0.93 GB, free: 49.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/1.905, allocations: 60 kB / 0.9301 GB, free: 49.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003529/1.909, allocations: 427.3 kB / 0.9305 GB, free: 48.91 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000965/1.91, allocations: 266.5 kB / 0.9307 GB, free: 48.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003321/1.91, allocations: 97.56 kB / 0.9308 GB, free: 48.56 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004578/1.914, allocations: 4.163 MB / 0.9349 GB, free: 44.41 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/1.914, allocations: 0 / 0.9349 GB, free: 44.41 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007527/1.922, allocations: 2.192 MB / 0.937 GB, free: 42.23 MB / 0.5294 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.03246/1.954, allocations: 24.29 MB / 0.9607 GB, free: 17.84 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2075/2.162, allocations: 13.65 MB / 0.9741 GB, free: 189.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/2.162, allocations: 0 / 0.9741 GB, free: 189.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009923/2.172, allocations: 6.019 MB / 0.98 GB, free: 187.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005258/2.177, allocations: 0.948 MB / 0.9809 GB, free: 186.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1419/2.319, allocations: 103.3 MB / 1.082 GB, free: 88.46 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005059/2.324, allocations: 4.81 MB / 1.086 GB, free: 83.63 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005827/2.33, allocations: 3.037 MB / 1.089 GB, free: 80.59 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004269/2.334, allocations: 3.405 MB / 1.093 GB, free: 77.18 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/2.334, allocations: 0 / 1.093 GB, free: 77.18 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3717/2.706, allocations: 169.5 MB / 1.258 GB, free: 107.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.11/28.81, allocations: 0 / 1.258 GB, free: 107.5 MB / 0.5294 GB " [Timeout remaining time 631] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 33.71286677301396]