Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003203/0.003202, allocations: 183.9 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.618/3.618, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001864/0.001865, allocations: 89.55 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006425/0.0006428, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5301/0.5308, allocations: 47.56 MB / 374.5 MB, free: 45.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.1332/0.664, allocations: 64.48 MB / 439 MB, free: 224 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.06437/0.7285, allocations: 14.99 MB / 454 MB, free: 1.176 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02219/0.7507, allocations: 335.1 kB / 454.3 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01753/0.7683, allocations: 3.219 MB / 457.5 MB, free: 13.61 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05618/0.8246, allocations: 9.26 MB / 466.8 MB, free: 4.328 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00975/0.8344, allocations: 0.9869 MB / 467.8 MB, free: 3.34 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.6447/1.479, allocations: 40.36 MB / 0.4962 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02117/1.5, allocations: 6.563 MB / 0.5027 GB, free: 36.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007011/1.508, allocations: 1.675 MB / 0.5043 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008859/1.516, allocations: 2.241 MB / 0.5065 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003318/1.52, allocations: 220.1 kB / 0.5067 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007678/1.528, allocations: 1.066 MB / 0.5077 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007783/1.536, allocations: 2.432 MB / 0.5101 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005418/1.541, allocations: 1.231 MB / 0.5113 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02027/1.561, allocations: 8.145 MB / 0.5193 GB, free: 32.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/1.561, allocations: 0 / 0.5193 GB, free: 32.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.767e-06/1.562, allocations: 3.25 kB / 0.5193 GB, free: 32.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005187/1.562, allocations: 0 / 0.5193 GB, free: 32.86 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.04336/1.605, allocations: 6.948 MB / 0.5261 GB, free: 28.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/1.606, allocations: 9.938 kB / 0.5261 GB, free: 28.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1795/1.785, allocations: 11.21 MB / 0.537 GB, free: 19.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02742/1.813, allocations: 5.517 MB / 0.5424 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006995/1.813, allocations: 332.2 kB / 0.5427 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004504/1.818, allocations: 465.3 kB / 0.5432 GB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06398/1.882, allocations: 14.66 MB / 0.5575 GB, free: 3.863 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006197/1.883, allocations: 74.8 kB / 0.5576 GB, free: 3.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003798/1.886, allocations: 214.1 kB / 0.5578 GB, free: 3.758 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01322/1.9, allocations: 2.831 MB / 0.5605 GB, free: 1.383 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07049/1.97, allocations: 13.23 MB / 0.5734 GB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1786/2.149, allocations: 58.49 MB / 0.6306 GB, free: 7.094 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05166/2.201, allocations: 8 MB / 0.6384 GB, free: 14.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0564/2.257, allocations: 12.81 MB / 0.6509 GB, free: 2.113 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/2.257, allocations: 60.7 kB / 0.6509 GB, free: 2.043 MB / 458.7 MB Notification: Performance of pre-optimization done (n=326): time 1.166e-05/2.257, allocations: 9.078 kB / 0.6509 GB, free: 2.039 MB / 458.7 MB Notification: Performance of matching and sorting (n=572): time 6.778/9.035, allocations: 409.2 MB / 1.051 GB, free: 169.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000183/9.036, allocations: 263.2 kB / 1.051 GB, free: 169 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02233/9.058, allocations: 5.897 MB / 1.057 GB, free: 167.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003884/9.062, allocations: 109 kB / 1.057 GB, free: 167.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005754/9.068, allocations: 3.793 MB / 1.06 GB, free: 164.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006797/9.075, allocations: 2.006 MB / 1.062 GB, free: 163.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005237/9.08, allocations: 190.9 kB / 1.063 GB, free: 163.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001294/9.081, allocations: 0.7035 MB / 1.063 GB, free: 162.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03769/9.119, allocations: 10.84 MB / 1.074 GB, free: 158.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04425/9.163, allocations: 14.92 MB / 1.088 GB, free: 148.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.044/9.207, allocations: 12.68 MB / 1.101 GB, free: 143.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002551/9.208, allocations: 40 kB / 1.101 GB, free: 143.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 1.422/10.63, allocations: 140.1 MB / 1.238 GB, free: 154 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000235/10.63, allocations: 64.53 kB / 1.238 GB, free: 154 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000415/10.63, allocations: 141.6 kB / 1.238 GB, free: 154 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.232/10.86, allocations: 34.64 MB / 1.272 GB, free: 145.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01388/10.88, allocations: 1.488 MB / 1.273 GB, free: 145 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208/12.08, allocations: 197.5 MB / 1.466 GB, free: 124.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03213/12.12, allocations: 1.708 MB / 1.468 GB, free: 123.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005144/12.12, allocations: 0.5304 MB / 1.468 GB, free: 122.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01783/12.14, allocations: 3.1 MB / 1.471 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005619/12.14, allocations: 0.5785 MB / 1.472 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.447/13.59, allocations: 136.4 MB / 1.605 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001659/13.59, allocations: 56.78 kB / 1.605 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000476/13.59, allocations: 59.66 kB / 1.605 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001989/13.59, allocations: 29.36 kB / 1.605 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.61/15.2, allocations: 206.1 MB / 1.806 GB, free: 136.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001341/15.2, allocations: 7.781 kB / 1.806 GB, free: 136.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003977/15.21, allocations: 334.1 kB / 1.807 GB, free: 136.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2044/15.41, allocations: 33.75 MB / 1.84 GB, free: 117.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003482/15.42, allocations: 96 kB / 1.84 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202/16.62, allocations: 180.6 MB / 2.016 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.796e-05/16.62, allocations: 11.66 kB / 2.016 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.633/18.25, allocations: 153 MB / 2.166 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01878/18.27, allocations: 3.014 MB / 2.168 GB, free: 110 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00681/18.28, allocations: 97.73 kB / 2.169 GB, free: 110 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02972/18.31, allocations: 1.486 MB / 2.17 GB, free: 108.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.01143/18.32, allocations: 0.4894 MB / 2.17 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003876/18.32, allocations: 144.5 kB / 2.171 GB, free: 108 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01667/18.34, allocations: 3.827 MB / 2.174 GB, free: 105.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.654e-06/18.34, allocations: 3.188 kB / 2.174 GB, free: 105.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.03665/18.38, allocations: 3.821 MB / 2.178 GB, free: 101.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.005231/18.38, allocations: 261.5 kB / 2.178 GB, free: 101.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.1641/18.55, allocations: 33.35 MB / 2.211 GB, free: 67.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.99e-05/18.55, allocations: 0 / 2.211 GB, free: 67.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1187/18.66, allocations: 20.46 MB / 2.231 GB, free: 47.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01322/18.68, allocations: 0.7099 MB / 2.232 GB, free: 46.68 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5831/19.26, allocations: 30.32 MB / 2.261 GB, free: 140.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02288/19.28, allocations: 5.258 MB / 2.266 GB, free: 139.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003887/19.29, allocations: 366.1 kB / 2.267 GB, free: 139.3 MB / 474.7 MB Notification: Performance of SimCode: time 2.355e-06/19.29, allocations: 2.406 kB / 2.267 GB, free: 139.3 MB / 474.7 MB Notification: Performance of Templates: time 1.439/20.73, allocations: 243.1 MB / 2.504 GB, free: 77.96 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches