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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 108 kB / 16.92 MB, free: 6.332 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.001305/0.001305, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009941/0.0009941, allocations: 46.86 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09339/0.0944, allocations: 49.44 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01735/0.1118, allocations: 18.17 MB / 368.3 MB, free: 2.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1967/0.3085, allocations: 6.05 MB / 374.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005949/0.3145, allocations: 144.6 kB / 374.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01322/0.3278, allocations: 6.271 MB / 380.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007934/0.3358, allocations: 2.847 MB / 383.6 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005087/0.3409, allocations: 2.273 MB / 385.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01381/0.3547, allocations: 9.497 MB / 395.4 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01285/0.3676, allocations: 8.428 MB / 403.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00684/0.3745, allocations: 3.182 MB / 407 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007285/0.3818, allocations: 4.165 MB / 411.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0029/0.3847, allocations: 0.7109 MB / 411.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005312/0.3901, allocations: 1.903 MB / 413.8 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005812/0.3959, allocations: 3.785 MB / 417.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008802/0.4047, allocations: 4.42 MB / 422 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0183/0.4231, allocations: 13.58 MB / 435.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.047e-05/0.4231, allocations: 4 kB / 435.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4231, allocations: 0 / 435.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004989/0.4236, allocations: 0 / 435.6 MB, free: 12.76 MB / 350.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.0315/0.4552, allocations: 9.42 MB / 445 MB, free: 3.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.4552, allocations: 8.031 kB / 445 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004101/0.4593, allocations: 1.136 MB / 446.2 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3379/0.7972, allocations: 23.24 MB / 469.4 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02354/0.8208, allocations: 7.839 MB / 477.2 MB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007015/0.8216, allocations: 435.8 kB / 477.7 MB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003667/0.8253, allocations: 0.5822 MB / 478.2 MB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04309/0.8684, allocations: 16.86 MB / 495.1 MB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003525/0.8688, allocations: 79.27 kB / 495.2 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001744/0.8706, allocations: 267.2 kB / 495.4 MB, free: 308 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005099/0.8757, allocations: 2.653 MB / 498.1 MB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03163/0.9073, allocations: 14.41 MB / 0.5005 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4103/1.318, allocations: 63.95 MB / 0.5629 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02218/1.34, allocations: 8.636 MB / 0.5714 GB, free: 100.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005213/1.345, allocations: 4.921 MB / 0.5762 GB, free: 98.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02154/1.367, allocations: 18.11 MB / 0.5939 GB, free: 88.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.161e-05/1.367, allocations: 67.91 kB / 0.5939 GB, free: 88.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.42e-06/1.367, allocations: 0 / 0.5939 GB, free: 88.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2351/1.602, allocations: 72.76 MB / 0.665 GB, free: 18.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/1.602, allocations: 380.4 kB / 0.6653 GB, free: 17.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008032/1.61, allocations: 6.422 MB / 0.6716 GB, free: 11.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009669/1.611, allocations: 81.7 kB / 0.6717 GB, free: 11.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002552/1.614, allocations: 4.846 MB / 0.6764 GB, free: 6.395 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002019/1.616, allocations: 1.365 MB / 0.6778 GB, free: 5.039 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002847/1.619, allocations: 1.832 MB / 0.6795 GB, free: 3.191 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.761e-05/1.619, allocations: 301.1 kB / 0.6798 GB, free: 2.895 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007005/1.626, allocations: 5.662 MB / 0.6854 GB, free: 13.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01201/1.638, allocations: 10.61 MB / 0.6957 GB, free: 216 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.252/1.89, allocations: 17.35 MB / 0.7127 GB, free: 154.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003158/1.89, allocations: 49.53 kB / 0.7127 GB, free: 154.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04487/1.935, allocations: 21.96 MB / 0.7342 GB, free: 148.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.164e-05/1.935, allocations: 86.89 kB / 0.7343 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/1.935, allocations: 168.4 kB / 0.7344 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01962/1.955, allocations: 6.864 MB / 0.7411 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006694/1.962, allocations: 2.077 MB / 0.7431 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03992/2.002, allocations: 36.43 MB / 0.7787 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008026/2.01, allocations: 0.7241 MB / 0.7794 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001204/2.011, allocations: 0.5038 MB / 0.7799 GB, free: 116 MB / 478.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.004455/2.015, allocations: 3.426 MB / 0.7833 GB, free: 112.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001231/2.017, allocations: 0.5891 MB / 0.7838 GB, free: 112.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02796/2.045, allocations: 16.1 MB / 0.7996 GB, free: 96.21 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.477e-05/2.045, allocations: 47.98 kB / 0.7996 GB, free: 96.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.919e-05/2.045, allocations: 16 kB / 0.7996 GB, free: 96.14 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.386e-05/2.045, allocations: 19.94 kB / 0.7996 GB, free: 96.12 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04701/2.092, allocations: 31.41 MB / 0.8303 GB, free: 64.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.116e-05/2.092, allocations: 8.188 kB / 0.8303 GB, free: 64.35 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00315/2.095, allocations: 0.6084 MB / 0.8309 GB, free: 63.74 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01823/2.113, allocations: 6.45 MB / 0.8372 GB, free: 57.27 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008394/2.114, allocations: 63.98 kB / 0.8373 GB, free: 57.21 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03811/2.152, allocations: 34.64 MB / 0.8711 GB, free: 22.16 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/2.152, allocations: 7.938 kB / 0.8711 GB, free: 22.15 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2506/2.403, allocations: 23.53 MB / 0.8941 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002038/2.405, allocations: 0.6212 MB / 0.8947 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001637/2.407, allocations: 64.78 kB / 0.8948 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004695/2.411, allocations: 429.8 kB / 0.8952 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00128/2.413, allocations: 249.7 kB / 0.8954 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003665/2.413, allocations: 92.75 kB / 0.8955 GB, free: 148.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005968/2.419, allocations: 4.111 MB / 0.8995 GB, free: 147.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/2.419, allocations: 0 / 0.8995 GB, free: 147.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009433/2.428, allocations: 2.196 MB / 0.9017 GB, free: 147 MB / 478.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.03772/2.466, allocations: 24.33 MB / 0.9254 GB, free: 137 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0273/2.494, allocations: 19.46 MB / 0.9444 GB, free: 117.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/2.494, allocations: 3.875 kB / 0.9444 GB, free: 117.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008906/2.503, allocations: 6.561 MB / 0.9508 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006348/2.509, allocations: 0.9464 MB / 0.9517 GB, free: 110.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.388/2.897, allocations: 120.9 MB / 1.07 GB, free: 145.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007513/2.905, allocations: 5.266 MB / 1.075 GB, free: 143.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007375/2.912, allocations: 3.03 MB / 1.078 GB, free: 143.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005576/2.918, allocations: 3.392 MB / 1.081 GB, free: 141 MB / 478.1 MB Notification: Performance of SimCode: time 1.793e-06/2.918, allocations: 0 / 1.081 GB, free: 141 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9614/3.879, allocations: 171.7 MB / 1.249 GB, free: 144.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/18.93, allocations: 1.125 kB / 1.249 GB, free: 144.5 MB / 478.1 MB (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 --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) 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) Reference file matches