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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_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.00137/0.001371, allocations: 114.2 kB / 17.28 MB, free: 6.219 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.001697/0.001697, allocations: 185.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 51.92 kB / 280.3 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09697/0.09831, allocations: 46.63 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2417/0.34, allocations: 81.44 MB / 408.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03509/0.3752, allocations: 16.52 MB / 424.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01699/0.3922, allocations: 375.6 kB / 425.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009869/0.4021, allocations: 6.073 MB / 431.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007046/0.4092, allocations: 2.671 MB / 434 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004436/0.4137, allocations: 2.182 MB / 436.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01183/0.4255, allocations: 9.263 MB / 445.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009695/0.4353, allocations: 8.855 MB / 454.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00488/0.4402, allocations: 3.295 MB / 457.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005652/0.4458, allocations: 4.64 MB / 462.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001596/0.4475, allocations: 0.7148 MB / 462.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003367/0.4508, allocations: 1.92 MB / 464.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003372/0.4542, allocations: 3.854 MB / 468.7 MB, free: 8.062 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005179/0.4594, allocations: 4.477 MB / 473.2 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01426/0.4737, allocations: 13.7 MB / 486.9 MB, free: 5.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.4737, allocations: 4 kB / 486.9 MB, free: 5.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4738, allocations: 0 / 486.9 MB, free: 5.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004841/0.4742, allocations: 0 / 486.9 MB, free: 5.82 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.02972/0.504, allocations: 9.484 MB / 496.3 MB, free: 12.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.504, allocations: 8.031 kB / 496.3 MB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003279/0.5073, allocations: 1.139 MB / 497.5 MB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2905/0.7979, allocations: 23.23 MB / 0.5085 GB, free: 3.824 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01894/0.8168, allocations: 8.486 MB / 0.5168 GB, free: 11.26 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004316/0.8173, allocations: 439.8 kB / 0.5172 GB, free: 10.83 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002565/0.8199, allocations: 0.5854 MB / 0.5178 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03423/0.8541, allocations: 16.87 MB / 0.5343 GB, free: 8.426 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003751/0.8545, allocations: 79.27 kB / 0.5343 GB, free: 8.348 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002142/0.8567, allocations: 267.8 kB / 0.5346 GB, free: 8.086 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004893/0.8616, allocations: 2.662 MB / 0.5372 GB, free: 5.418 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3864/1.248, allocations: 14.4 MB / 0.5513 GB, free: 158.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06661/1.315, allocations: 64.11 MB / 0.6139 GB, free: 104.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02016/1.335, allocations: 8.633 MB / 0.6223 GB, free: 95.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005793/1.341, allocations: 4.921 MB / 0.6271 GB, free: 90.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02436/1.365, allocations: 18.13 MB / 0.6448 GB, free: 72.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/1.365, allocations: 68.5 kB / 0.6449 GB, free: 72.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.502e-06/1.365, allocations: 3.984 kB / 0.6449 GB, free: 72.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.3765/1.742, allocations: 72.98 MB / 0.7161 GB, free: 149.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/1.742, allocations: 375.1 kB / 0.7165 GB, free: 149.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00999/1.752, allocations: 6.495 MB / 0.7228 GB, free: 148.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009976/1.753, allocations: 82.36 kB / 0.7229 GB, free: 148.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002957/1.756, allocations: 4.855 MB / 0.7277 GB, free: 145.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001543/1.757, allocations: 1.37 MB / 0.729 GB, free: 144.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002612/1.76, allocations: 1.836 MB / 0.7308 GB, free: 143.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.389e-05/1.76, allocations: 304.1 kB / 0.7311 GB, free: 143.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006067/1.766, allocations: 5.66 MB / 0.7366 GB, free: 141.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007042/1.773, allocations: 10.62 MB / 0.747 GB, free: 132.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01353/1.787, allocations: 17.36 MB / 0.7639 GB, free: 120.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.161e-05/1.787, allocations: 51.12 kB / 0.764 GB, free: 120.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03323/1.82, allocations: 21.97 MB / 0.7854 GB, free: 103 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.449e-05/1.82, allocations: 76 kB / 0.7855 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/1.82, allocations: 172 kB / 0.7857 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01728/1.838, allocations: 6.877 MB / 0.7924 GB, free: 95.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006269/1.844, allocations: 2.074 MB / 0.7944 GB, free: 93.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04713/1.891, allocations: 36.42 MB / 0.83 GB, free: 56.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01271/1.904, allocations: 0.7213 MB / 0.8307 GB, free: 56.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001502/1.905, allocations: 0.5078 MB / 0.8312 GB, free: 55.74 MB / 446.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.006626/1.912, allocations: 3.43 MB / 0.8345 GB, free: 52.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001756/1.914, allocations: 0.5901 MB / 0.8351 GB, free: 51.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02621/1.94, allocations: 16.11 MB / 0.8508 GB, free: 35.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.855e-05/1.94, allocations: 44 kB / 0.8509 GB, free: 35.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.64e-05/1.94, allocations: 16 kB / 0.8509 GB, free: 35.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.251e-05/1.94, allocations: 19.94 kB / 0.8509 GB, free: 35.44 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2262/2.166, allocations: 31.44 MB / 0.8816 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.059e-05/2.166, allocations: 5.438 kB / 0.8816 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002993/2.169, allocations: 0.6014 MB / 0.8822 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01754/2.187, allocations: 6.465 MB / 0.8885 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006761/2.188, allocations: 61.92 kB / 0.8886 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0355/2.223, allocations: 34.63 MB / 0.9224 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/2.223, allocations: 4 kB / 0.9224 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03167/2.255, allocations: 23.55 MB / 0.9454 GB, free: 94.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003484/2.258, allocations: 1.631 MB / 0.947 GB, free: 93.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001253/2.26, allocations: 60 kB / 0.947 GB, free: 93.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003696/2.263, allocations: 431.3 kB / 0.9475 GB, free: 92.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001071/2.264, allocations: 250.5 kB / 0.9477 GB, free: 92.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003273/2.265, allocations: 92 kB / 0.9478 GB, free: 92.54 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004752/2.27, allocations: 4.163 MB / 0.9519 GB, free: 88.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/2.27, allocations: 0 / 0.9519 GB, free: 88.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007431/2.277, allocations: 2.196 MB / 0.954 GB, free: 86.2 MB / 446.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.03253/2.31, allocations: 24.32 MB / 0.9777 GB, free: 62.01 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02466/2.334, allocations: 19.46 MB / 0.9968 GB, free: 42.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/2.334, allocations: 0 / 0.9968 GB, free: 42.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007864/2.342, allocations: 6.562 MB / 1.003 GB, free: 35.97 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005342/2.348, allocations: 0.9636 MB / 1.004 GB, free: 35.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.315/2.663, allocations: 124.9 MB / 1.126 GB, free: 58.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005373/2.668, allocations: 5.29 MB / 1.131 GB, free: 52.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00651/2.675, allocations: 3.041 MB / 1.134 GB, free: 49.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004169/2.679, allocations: 3.401 MB / 1.138 GB, free: 46.34 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/2.679, allocations: 0 / 1.138 GB, free: 46.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.998/4.676, allocations: 172.2 MB / 1.306 GB, free: 94.62 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/4.676, allocations: 258.4 kB / 1.306 GB, free: 94.36 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.239/9.916, allocations: 0 / 1.306 GB, free: 94.36 MB / 478.1 MB (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 --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) 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches