Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001555/0.001555, allocations: 196.1 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007648/0.0007647, allocations: 102.1 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002182/0.0002182, allocations: 4 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1817, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.05344/0.2351, allocations: 73.56 MB / 481.7 MB, free: 1.949 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02861/0.2638, allocations: 15.8 MB / 497.5 MB, free: 2.113 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01068/0.2745, allocations: 367.1 kB / 497.8 MB, free: 1.754 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009307/0.2839, allocations: 3.623 MB / 0.4897 GB, free: 14.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0235/0.3074, allocations: 10.77 MB / 0.5002 GB, free: 3.301 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004867/0.3123, allocations: 1.287 MB / 0.5015 GB, free: 2.012 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.3061/0.6184, allocations: 121.1 MB / 0.6198 GB, free: 236 kB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01358/0.632, allocations: 11.4 MB / 0.6309 GB, free: 8.059 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003892/0.636, allocations: 2.398 MB / 0.6333 GB, free: 6.426 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004314/0.6403, allocations: 3.637 MB / 0.6368 GB, free: 3.816 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008642/0.6412, allocations: 248 kB / 0.637 GB, free: 3.574 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002685/0.6439, allocations: 1.496 MB / 0.6385 GB, free: 2.395 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002732/0.6466, allocations: 3.197 MB / 0.6416 GB, free: 24 kB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003415/0.65, allocations: 3.491 MB / 0.645 GB, free: 14.74 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009541/0.6596, allocations: 10.98 MB / 0.6558 GB, free: 5.199 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.6596, allocations: 0 / 0.6558 GB, free: 5.199 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6596, allocations: 0 / 0.6558 GB, free: 5.199 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003322/0.66, allocations: 0 / 0.6558 GB, free: 5.199 MB / 474.7 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.01936/0.6793, allocations: 7.792 MB / 0.6634 GB, free: 14.07 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.6794, allocations: 8.031 kB / 0.6634 GB, free: 14.07 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002698/0.6821, allocations: 1.146 MB / 0.6645 GB, free: 13.39 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3008/0.9829, allocations: 23.86 MB / 0.6878 GB, free: 6.305 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01629/0.9992, allocations: 7.397 MB / 0.695 GB, free: 0.957 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003705/0.9996, allocations: 434.1 kB / 0.6954 GB, free: 0.7227 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002359/1.002, allocations: 0.5867 MB / 0.696 GB, free: 340 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3219/1.324, allocations: 16.87 MB / 0.7125 GB, free: 204.6 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002714/1.324, allocations: 80.95 kB / 0.7126 GB, free: 204.6 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001271/1.326, allocations: 266.5 kB / 0.7128 GB, free: 204.4 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003889/1.329, allocations: 2.655 MB / 0.7154 GB, free: 202.5 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02456/1.354, allocations: 14.39 MB / 0.7295 GB, free: 188.1 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06069/1.415, allocations: 63.96 MB / 0.7919 GB, free: 123.5 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01994/1.435, allocations: 8.678 MB / 0.8004 GB, free: 114.8 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004755/1.44, allocations: 4.911 MB / 0.8052 GB, free: 109.8 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02281/1.462, allocations: 18.1 MB / 0.8229 GB, free: 91.67 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/1.463, allocations: 64.56 kB / 0.8229 GB, free: 91.6 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=281): time 6.322e-06/1.463, allocations: 0 / 0.8229 GB, free: 91.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=374): time 0.2326/1.695, allocations: 73.8 MB / 0.895 GB, free: 17.79 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/1.695, allocations: 384.6 kB / 0.8954 GB, free: 17.33 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009105/1.704, allocations: 6.387 MB / 0.9016 GB, free: 10.94 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001176/1.706, allocations: 81.7 kB / 0.9017 GB, free: 10.86 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003044/1.709, allocations: 4.841 MB / 0.9064 GB, free: 6.012 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.00168/1.71, allocations: 1.37 MB / 0.9077 GB, free: 4.656 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00107/1.712, allocations: 176 kB / 0.9079 GB, free: 4.484 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0005532/1.712, allocations: 0.6743 MB / 0.9086 GB, free: 3.801 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1768/1.889, allocations: 5.632 MB / 0.9141 GB, free: 193.6 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009945/1.899, allocations: 10.58 MB / 0.9244 GB, free: 185.8 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01569/1.915, allocations: 17.31 MB / 0.9413 GB, free: 173.8 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/1.915, allocations: 49.44 kB / 0.9413 GB, free: 173.8 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03832/1.953, allocations: 21.91 MB / 0.9627 GB, free: 162 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.00012/1.953, allocations: 88.19 kB / 0.9628 GB, free: 161.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001767/1.953, allocations: 168 kB / 0.963 GB, free: 161.7 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01924/1.973, allocations: 6.896 MB / 0.9697 GB, free: 155.3 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007033/1.98, allocations: 2.07 MB / 0.9717 GB, free: 153.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03806/2.018, allocations: 34.02 MB / 1.005 GB, free: 119 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008177/2.026, allocations: 0.7207 MB / 1.006 GB, free: 118.3 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001529/2.028, allocations: 0.5097 MB / 1.006 GB, free: 117.8 MB / 0.4949 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 (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.005843/2.034, allocations: 3.417 MB / 1.01 GB, free: 114.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001288/2.035, allocations: 0.5863 MB / 1.01 GB, free: 114.2 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02834/2.063, allocations: 16.1 MB / 1.026 GB, free: 98.02 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.558e-05/2.063, allocations: 52.84 kB / 1.026 GB, free: 97.96 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.194e-05/2.063, allocations: 18.72 kB / 1.026 GB, free: 97.95 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.243e-05/2.063, allocations: 15.94 kB / 1.026 GB, free: 97.93 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04527/2.109, allocations: 31.42 MB / 1.057 GB, free: 66.18 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.72e-05/2.109, allocations: 8.234 kB / 1.057 GB, free: 66.17 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002924/2.112, allocations: 0.6045 MB / 1.057 GB, free: 65.57 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01807/2.13, allocations: 6.562 MB / 1.064 GB, free: 58.99 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006506/2.13, allocations: 65.17 kB / 1.064 GB, free: 58.93 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03537/2.166, allocations: 32.29 MB / 1.095 GB, free: 26.32 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/2.166, allocations: 4 kB / 1.095 GB, free: 26.32 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2151/2.381, allocations: 23.52 MB / 1.118 GB, free: 174.7 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/2.383, allocations: 0.6334 MB / 1.119 GB, free: 174.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001365/2.384, allocations: 62.7 kB / 1.119 GB, free: 174.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004157/2.388, allocations: 430.9 kB / 1.119 GB, free: 174.5 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001518/2.39, allocations: 251.2 kB / 1.119 GB, free: 174.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003459/2.39, allocations: 98.31 kB / 1.12 GB, free: 174.4 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.00495/2.395, allocations: 4.074 MB / 1.124 GB, free: 173.1 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.41e-07/2.395, allocations: 3.125 kB / 1.124 GB, free: 173.1 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007678/2.403, allocations: 2.199 MB / 1.126 GB, free: 172.9 MB / 0.4949 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 (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.03685/2.44, allocations: 24.3 MB / 1.149 GB, free: 161 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01939/2.459, allocations: 14.21 MB / 1.163 GB, free: 147.3 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/2.459, allocations: 0 / 1.163 GB, free: 147.3 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008792/2.468, allocations: 6.548 MB / 1.17 GB, free: 140.7 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007382/2.475, allocations: 0.8793 MB / 1.171 GB, free: 139.9 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1127/2.588, allocations: 82.24 MB / 1.251 GB, free: 52.57 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005385/2.594, allocations: 5.281 MB / 1.256 GB, free: 47.25 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004877/2.599, allocations: 3.448 MB / 1.259 GB, free: 43.8 MB / 0.4949 GB Notification: Performance of SimCode: time 8.22e-07/2.599, allocations: 3.938 kB / 1.259 GB, free: 43.8 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.94/14.54, allocations: 230.5 MB / 1.484 GB, free: 152.4 MB / 0.4949 GB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches