Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001396/0.001396, allocations: 175.9 kB / 16.72 MB, free: 5.078 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.499/1.499, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008159/0.000816, allocations: 93.05 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003396, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2411, allocations: 47.56 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03199/0.2731, allocations: 48.44 MB / 423.5 MB, free: 156 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02467/0.2978, allocations: 10.63 MB / 434.2 MB, free: 5.488 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0103/0.3082, allocations: 235.4 kB / 434.4 MB, free: 5.258 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008305/0.3165, allocations: 2.516 MB / 436.9 MB, free: 2.73 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02094/0.3375, allocations: 7.627 MB / 444.5 MB, free: 11.07 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004336/0.3419, allocations: 0.9127 MB / 445.4 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0481/0.39, allocations: 36.71 MB / 482.2 MB, free: 5.406 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01021/0.4003, allocations: 5.528 MB / 487.7 MB, free: 15.8 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004446/0.4048, allocations: 1.888 MB / 489.6 MB, free: 13.9 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005037/0.4099, allocations: 3.128 MB / 492.7 MB, free: 10.77 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001576/0.4115, allocations: 236 kB / 492.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003786/0.4153, allocations: 1.322 MB / 494.2 MB, free: 9.211 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00446/0.4198, allocations: 2.575 MB / 496.8 MB, free: 6.629 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006097/0.4259, allocations: 2.805 MB / 499.6 MB, free: 3.801 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2358/0.6617, allocations: 7.957 MB / 0.4957 GB, free: 43.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.507e-06/0.6618, allocations: 0 / 0.4957 GB, free: 43.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.6618, allocations: 0 / 0.4957 GB, free: 43.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004918/0.6623, allocations: 0 / 0.4957 GB, free: 43.2 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01488/0.6772, allocations: 6.065 MB / 0.5016 GB, free: 40.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.6773, allocations: 9.812 kB / 0.5016 GB, free: 40.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01568/0.6929, allocations: 4.036 MB / 0.5056 GB, free: 40.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01104/0.704, allocations: 4.204 MB / 0.5097 GB, free: 39.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004366/0.7045, allocations: 316 kB / 0.51 GB, free: 39.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002566/0.7071, allocations: 434.5 kB / 0.5104 GB, free: 39.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02677/0.7339, allocations: 15.71 MB / 0.5257 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/0.7341, allocations: 57.62 kB / 0.5258 GB, free: 36.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007475/0.7348, allocations: 204 kB / 0.526 GB, free: 36.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004215/0.7391, allocations: 3.223 MB / 0.5291 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02506/0.7641, allocations: 14.08 MB / 0.5429 GB, free: 26.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07119/0.8354, allocations: 57.8 MB / 0.5993 GB, free: 7.184 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0142/0.8496, allocations: 6.556 MB / 0.6057 GB, free: 400 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00548/0.8552, allocations: 3.674 MB / 0.6093 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02468/0.8799, allocations: 14.64 MB / 0.6236 GB, free: 13.67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.992e-05/0.88, allocations: 76.48 kB / 0.6237 GB, free: 13.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=289): time 6.472e-06/0.88, allocations: 0 / 0.6237 GB, free: 13.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.1438/1.024, allocations: 42.62 MB / 0.6653 GB, free: 2.992 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/1.024, allocations: 217.2 kB / 0.6655 GB, free: 2.738 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2047/1.229, allocations: 5.465 MB / 0.6708 GB, free: 189.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007797/1.23, allocations: 70.31 kB / 0.6709 GB, free: 189.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002557/1.232, allocations: 4.362 MB / 0.6752 GB, free: 186.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001467/1.234, allocations: 1.255 MB / 0.6764 GB, free: 185.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006011/1.234, allocations: 179.2 kB / 0.6766 GB, free: 185.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004082/1.235, allocations: 0.6955 MB / 0.6772 GB, free: 185.1 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007457/1.242, allocations: 4.773 MB / 0.6819 GB, free: 183.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/1.252, allocations: 9.773 MB / 0.6915 GB, free: 175 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01563/1.268, allocations: 15.53 MB / 0.7066 GB, free: 163.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002363/1.268, allocations: 53.56 kB / 0.7067 GB, free: 163.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03908/1.307, allocations: 19.5 MB / 0.7257 GB, free: 149.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/1.308, allocations: 92.66 kB / 0.7258 GB, free: 149 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002037/1.308, allocations: 172 kB / 0.726 GB, free: 148.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01926/1.327, allocations: 5.97 MB / 0.7318 GB, free: 142.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007314/1.334, allocations: 2.113 MB / 0.7339 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02625/1.361, allocations: 24.76 MB / 0.758 GB, free: 115.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007139/1.368, allocations: 0.568 MB / 0.7586 GB, free: 115.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00136/1.369, allocations: 0.5039 MB / 0.7591 GB, free: 114.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004977/1.374, allocations: 3.101 MB / 0.7621 GB, free: 111.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000995/1.375, allocations: 0.4897 MB / 0.7626 GB, free: 111 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0261/1.401, allocations: 12.93 MB / 0.7752 GB, free: 98.04 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/1.402, allocations: 60.98 kB / 0.7753 GB, free: 97.98 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-05/1.402, allocations: 10.31 kB / 0.7753 GB, free: 97.98 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.568e-05/1.402, allocations: 19.95 kB / 0.7753 GB, free: 97.96 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04258/1.444, allocations: 24.64 MB / 0.7994 GB, free: 72.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.365e-05/1.444, allocations: 4 kB / 0.7994 GB, free: 72.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002874/1.447, allocations: 0.5772 MB / 0.7999 GB, free: 72.28 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01628/1.464, allocations: 4.998 MB / 0.8048 GB, free: 67.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007468/1.464, allocations: 53.09 kB / 0.8049 GB, free: 67.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02133/1.486, allocations: 19.99 MB / 0.8244 GB, free: 46.97 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.486, allocations: 12.06 kB / 0.8244 GB, free: 46.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03068/1.516, allocations: 17.44 MB / 0.8414 GB, free: 29.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003636/1.52, allocations: 1.264 MB / 0.8427 GB, free: 28.06 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001872/1.522, allocations: 55.67 kB / 0.8427 GB, free: 28.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003756/1.526, allocations: 259.6 kB / 0.843 GB, free: 27.76 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001018/1.527, allocations: 201.6 kB / 0.8432 GB, free: 27.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005409/1.527, allocations: 80 kB / 0.8432 GB, free: 27.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005917/1.533, allocations: 3.387 MB / 0.8465 GB, free: 24.12 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.533, allocations: 0 / 0.8465 GB, free: 24.12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008342/1.542, allocations: 1.756 MB / 0.8483 GB, free: 22.37 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008305/1.543, allocations: 218 kB / 0.8485 GB, free: 22.15 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2071/1.75, allocations: 10.87 MB / 0.8591 GB, free: 179.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/1.75, allocations: 5.094 kB / 0.8591 GB, free: 179.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007251/1.757, allocations: 4.098 MB / 0.8631 GB, free: 177.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008502/1.766, allocations: 0.5812 MB / 0.8637 GB, free: 177.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03016/1.796, allocations: 19.21 MB / 0.8824 GB, free: 167.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005563/1.801, allocations: 4.597 MB / 0.8869 GB, free: 163.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00227/1.804, allocations: 414.9 kB / 0.8873 GB, free: 163.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/1.804, allocations: 0 / 0.8873 GB, free: 163.6 MB / 474.7 MB Notification: Performance of Templates: time 0.4017/2.205, allocations: 148.7 MB / 1.032 GB, free: 164 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches