Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.4 MB / 222.9 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008146/0.0008146, allocations: 89.48 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003131, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2065, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.04927/0.2558, allocations: 73.9 MB / 449.1 MB, free: 6.613 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03306/0.2889, allocations: 15.87 MB / 465 MB, free: 6.695 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01195/0.3009, allocations: 371.1 kB / 465.3 MB, free: 6.332 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009342/0.3103, allocations: 3.62 MB / 468.9 MB, free: 2.695 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02421/0.3345, allocations: 10.79 MB / 479.7 MB, free: 7.867 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005369/0.3399, allocations: 1.303 MB / 481 MB, free: 6.562 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.2664/0.6064, allocations: 66.5 MB / 0.5347 GB, free: 14.29 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01163/0.618, allocations: 11.44 MB / 0.5459 GB, free: 6.102 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003906/0.622, allocations: 2.417 MB / 0.5482 GB, free: 4.457 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004093/0.6261, allocations: 3.658 MB / 0.5518 GB, free: 1.832 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008972/0.627, allocations: 248 kB / 0.552 GB, free: 1.59 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002708/0.6297, allocations: 1.503 MB / 0.5535 GB, free: 408 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003173/0.6329, allocations: 3.218 MB / 0.5567 GB, free: 14.02 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004299/0.6372, allocations: 3.513 MB / 0.5601 GB, free: 12.73 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.648, allocations: 11.01 MB / 0.5708 GB, free: 3.148 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.648, allocations: 0 / 0.5708 GB, free: 3.148 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.055e-06/0.648, allocations: 1.531 kB / 0.5708 GB, free: 3.148 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003023/0.6483, allocations: 3.188 kB / 0.5708 GB, free: 3.148 MB / 394.7 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.02041/0.6687, allocations: 7.805 MB / 0.5785 GB, free: 12.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.6688, allocations: 12.02 kB / 0.5785 GB, free: 12 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003388/0.6722, allocations: 1.13 MB / 0.5796 GB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3059/0.9781, allocations: 23.86 MB / 0.6029 GB, free: 4.246 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01816/0.9963, allocations: 8.492 MB / 0.6112 GB, free: 14.21 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003779/0.9967, allocations: 429.3 kB / 0.6116 GB, free: 13.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002132/0.9989, allocations: 0.5807 MB / 0.6122 GB, free: 13.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03267/1.032, allocations: 16.88 MB / 0.6286 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004096/1.032, allocations: 81.89 kB / 0.6287 GB, free: 0.5664 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00185/1.034, allocations: 271.1 kB / 0.629 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00463/1.039, allocations: 2.653 MB / 0.6316 GB, free: 14.31 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02892/1.067, allocations: 14.4 MB / 0.6456 GB, free: 4.301 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.229/1.297, allocations: 64.1 MB / 0.7082 GB, free: 151.8 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02012/1.317, allocations: 8.676 MB / 0.7167 GB, free: 147.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005031/1.322, allocations: 4.903 MB / 0.7215 GB, free: 144 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02311/1.345, allocations: 18.13 MB / 0.7392 GB, free: 125.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/1.345, allocations: 64.56 kB / 0.7393 GB, free: 125.9 MB / 474.7 MB Notification: Performance of pre-optimization done (n=281): time 6.211e-06/1.345, allocations: 0 / 0.7393 GB, free: 125.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=374): time 0.2288/1.574, allocations: 74.03 MB / 0.8116 GB, free: 52.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.981e-05/1.574, allocations: 380.1 kB / 0.8119 GB, free: 51.75 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008251/1.582, allocations: 6.456 MB / 0.8182 GB, free: 45.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008247/1.583, allocations: 84.33 kB / 0.8183 GB, free: 45.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002209/1.585, allocations: 4.861 MB / 0.823 GB, free: 40.35 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001328/1.587, allocations: 1.367 MB / 0.8244 GB, free: 39 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005675/1.587, allocations: 179.9 kB / 0.8246 GB, free: 38.82 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003141/1.587, allocations: 0.686 MB / 0.8252 GB, free: 38.12 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006121/1.594, allocations: 5.62 MB / 0.8307 GB, free: 32.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00793/1.602, allocations: 10.58 MB / 0.841 GB, free: 19.53 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1654/1.767, allocations: 17.31 MB / 0.8579 GB, free: 178.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001266/1.767, allocations: 46.44 kB / 0.858 GB, free: 178.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03984/1.807, allocations: 21.91 MB / 0.8794 GB, free: 173 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.91e-05/1.807, allocations: 85 kB / 0.8795 GB, free: 173 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/1.807, allocations: 169.5 kB / 0.8796 GB, free: 173 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01925/1.827, allocations: 6.902 MB / 0.8864 GB, free: 170.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006526/1.833, allocations: 2.073 MB / 0.8884 GB, free: 169.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03776/1.871, allocations: 34.02 MB / 0.9216 GB, free: 135.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00756/1.879, allocations: 0.7148 MB / 0.9223 GB, free: 134.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001206/1.88, allocations: 0.5149 MB / 0.9228 GB, free: 134.3 MB / 474.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.004927/1.885, allocations: 3.427 MB / 0.9262 GB, free: 131 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/1.886, allocations: 0.5931 MB / 0.9267 GB, free: 130.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03043/1.916, allocations: 16.1 MB / 0.9425 GB, free: 114.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.748e-05/1.916, allocations: 59.41 kB / 0.9425 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-05/1.916, allocations: 16 kB / 0.9425 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.945e-05/1.916, allocations: 19.62 kB / 0.9426 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04466/1.961, allocations: 31.44 MB / 0.9733 GB, free: 82.69 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.738e-05/1.961, allocations: 4 kB / 0.9733 GB, free: 82.69 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002896/1.964, allocations: 0.6006 MB / 0.9738 GB, free: 82.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01775/1.982, allocations: 6.577 MB / 0.9803 GB, free: 75.56 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006636/1.983, allocations: 60.83 kB / 0.9803 GB, free: 75.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03541/2.018, allocations: 32.28 MB / 1.012 GB, free: 42.82 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/2.018, allocations: 4 kB / 1.012 GB, free: 42.81 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03586/2.054, allocations: 23.53 MB / 1.035 GB, free: 19.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1574/2.211, allocations: 1.633 MB / 1.036 GB, free: 171.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001058/2.212, allocations: 65.58 kB / 1.036 GB, free: 171.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003996/2.216, allocations: 435.7 kB / 1.037 GB, free: 171.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001498/2.218, allocations: 249.6 kB / 1.037 GB, free: 171.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003505/2.218, allocations: 94.62 kB / 1.037 GB, free: 171.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005811/2.224, allocations: 4.126 MB / 1.041 GB, free: 171 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.3e-07/2.224, allocations: 3 kB / 1.041 GB, free: 171 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008358/2.232, allocations: 2.195 MB / 1.043 GB, free: 171 MB / 474.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0364/2.269, allocations: 24.3 MB / 1.067 GB, free: 163.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0179/2.287, allocations: 14.2 MB / 1.081 GB, free: 151.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/2.287, allocations: 0 / 1.081 GB, free: 151.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008687/2.296, allocations: 6.547 MB / 1.087 GB, free: 145.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007817/2.303, allocations: 0.8928 MB / 1.088 GB, free: 144.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1248/2.428, allocations: 82.68 MB / 1.169 GB, free: 56.69 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007639/2.436, allocations: 5.292 MB / 1.174 GB, free: 51.36 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005273/2.441, allocations: 3.463 MB / 1.178 GB, free: 47.89 MB / 474.7 MB Notification: Performance of SimCode: time 8.02e-07/2.441, allocations: 3.938 kB / 1.178 GB, free: 47.89 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.13/14.57, allocations: 231.2 MB / 1.403 GB, free: 151.4 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches