Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009986/0.0009986, allocations: 200.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.6 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008678/0.0008677, allocations: 81.22 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002172/0.0002172, allocations: 4 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2235, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03755/0.2611, allocations: 48.41 MB / 456.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02711/0.2883, allocations: 10.66 MB / 467.1 MB, free: 456 kB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009485/0.2979, allocations: 231.4 kB / 467.3 MB, free: 224 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008419/0.3063, allocations: 2.512 MB / 469.9 MB, free: 13.69 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02162/0.328, allocations: 7.615 MB / 477.5 MB, free: 6.051 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004107/0.3322, allocations: 0.905 MB / 478.4 MB, free: 5.145 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.2637/0.5959, allocations: 63.02 MB / 0.5287 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007253/0.6032, allocations: 5.524 MB / 0.5341 GB, free: 32.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002949/0.6062, allocations: 1.885 MB / 0.5359 GB, free: 30.87 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003564/0.6098, allocations: 3.118 MB / 0.539 GB, free: 28.62 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008677/0.6107, allocations: 236 kB / 0.5392 GB, free: 28.39 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00233/0.613, allocations: 1.309 MB / 0.5405 GB, free: 27.38 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00193/0.615, allocations: 2.565 MB / 0.543 GB, free: 25.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002498/0.6175, allocations: 2.795 MB / 0.5457 GB, free: 24.59 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005814/0.6233, allocations: 7.955 MB / 0.5535 GB, free: 17.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.6234, allocations: 0 / 0.5535 GB, free: 17.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.6234, allocations: 0 / 0.5535 GB, free: 17.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002883/0.6237, allocations: 4 kB / 0.5535 GB, free: 17.68 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.0114/0.6351, allocations: 6.053 MB / 0.5594 GB, free: 12.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.6351, allocations: 14.75 kB / 0.5594 GB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01462/0.6498, allocations: 4.038 MB / 0.5634 GB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007967/0.6578, allocations: 4.037 MB / 0.5673 GB, free: 5.164 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002184/0.658, allocations: 322.9 kB / 0.5676 GB, free: 4.988 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001508/0.6596, allocations: 438.7 kB / 0.568 GB, free: 4.703 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02339/0.683, allocations: 15.7 MB / 0.5834 GB, free: 8.594 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001611/0.6832, allocations: 60.44 kB / 0.5834 GB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007652/0.6839, allocations: 206.2 kB / 0.5836 GB, free: 8.504 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004602/0.6885, allocations: 3.223 MB / 0.5868 GB, free: 5.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02512/0.7137, allocations: 14.09 MB / 0.6005 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07185/0.7856, allocations: 57.79 MB / 0.657 GB, free: 1.352 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01405/0.7997, allocations: 6.545 MB / 0.6634 GB, free: 10.55 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005231/0.8049, allocations: 3.676 MB / 0.6669 GB, free: 6.871 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2017/1.007, allocations: 14.64 MB / 0.6812 GB, free: 172.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.78e-05/1.007, allocations: 72.55 kB / 0.6813 GB, free: 172.8 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 7.263e-06/1.007, allocations: 1.062 kB / 0.6813 GB, free: 172.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.1336/1.14, allocations: 42.59 MB / 0.7229 GB, free: 142.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.643e-05/1.14, allocations: 221.4 kB / 0.7231 GB, free: 142.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008416/1.149, allocations: 5.441 MB / 0.7284 GB, free: 137.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007426/1.15, allocations: 76.06 kB / 0.7285 GB, free: 137.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002204/1.152, allocations: 4.36 MB / 0.7328 GB, free: 132.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001494/1.153, allocations: 1.256 MB / 0.734 GB, free: 131.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/1.154, allocations: 176 kB / 0.7342 GB, free: 131.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000576/1.155, allocations: 0.6944 MB / 0.7348 GB, free: 130.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00654/1.162, allocations: 4.769 MB / 0.7395 GB, free: 125.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00863/1.17, allocations: 9.771 MB / 0.749 GB, free: 113.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01531/1.186, allocations: 15.53 MB / 0.7642 GB, free: 95.61 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001372/1.186, allocations: 52 kB / 0.7643 GB, free: 95.56 MB / 474.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03905/1.225, allocations: 19.51 MB / 0.7833 GB, free: 76.01 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.079e-05/1.225, allocations: 76 kB / 0.7834 GB, free: 75.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001491/1.225, allocations: 184 kB / 0.7835 GB, free: 75.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01972/1.245, allocations: 5.96 MB / 0.7894 GB, free: 69.78 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006887/1.252, allocations: 2.109 MB / 0.7914 GB, free: 67.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02718/1.279, allocations: 24.76 MB / 0.8156 GB, free: 42.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006783/1.286, allocations: 0.5578 MB / 0.8162 GB, free: 42.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001531/1.287, allocations: 0.5155 MB / 0.8167 GB, free: 41.55 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.005526/1.293, allocations: 3.101 MB / 0.8197 GB, free: 38.44 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001236/1.294, allocations: 0.4936 MB / 0.8202 GB, free: 37.94 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02786/1.322, allocations: 12.94 MB / 0.8328 GB, free: 24.93 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.948e-05/1.322, allocations: 58.25 kB / 0.8329 GB, free: 24.88 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.453e-05/1.322, allocations: 8 kB / 0.8329 GB, free: 24.87 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.499e-05/1.322, allocations: 11.95 kB / 0.8329 GB, free: 24.86 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2184/1.541, allocations: 24.6 MB / 0.8569 GB, free: 151.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.415e-05/1.541, allocations: 7.312 kB / 0.8569 GB, free: 151.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002837/1.544, allocations: 0.5791 MB / 0.8575 GB, free: 151.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01756/1.561, allocations: 4.998 MB / 0.8624 GB, free: 151.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006083/1.562, allocations: 62.06 kB / 0.8624 GB, free: 151.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02208/1.584, allocations: 19.99 MB / 0.8819 GB, free: 136.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/1.584, allocations: 11.94 kB / 0.8819 GB, free: 136.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03049/1.614, allocations: 17.45 MB / 0.899 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/1.616, allocations: 0.5424 MB / 0.8995 GB, free: 118.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008692/1.617, allocations: 61.23 kB / 0.8996 GB, free: 118.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00256/1.619, allocations: 262.2 kB / 0.8998 GB, free: 118.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006552/1.62, allocations: 194.5 kB / 0.9 GB, free: 118 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/1.62, allocations: 89.08 kB / 0.9001 GB, free: 117.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004706/1.625, allocations: 3.371 MB / 0.9034 GB, free: 114.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.625, allocations: 0 / 0.9034 GB, free: 114.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00654/1.632, allocations: 1.762 MB / 0.9051 GB, free: 112.8 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.0006406/1.632, allocations: 205.4 kB / 0.9053 GB, free: 112.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01369/1.646, allocations: 10.88 MB / 0.9159 GB, free: 101.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/1.646, allocations: 4 kB / 0.9159 GB, free: 101.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005137/1.651, allocations: 4.093 MB / 0.9199 GB, free: 97.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007556/1.659, allocations: 0.5889 MB / 0.9205 GB, free: 97.13 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02427/1.683, allocations: 19.19 MB / 0.9392 GB, free: 78.01 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004713/1.688, allocations: 4.603 MB / 0.9437 GB, free: 73.38 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00195/1.69, allocations: 419.4 kB / 0.9441 GB, free: 72.96 MB / 474.7 MB Notification: Performance of SimCode: time 2.074e-06/1.69, allocations: 0 / 0.9441 GB, free: 72.96 MB / 474.7 MB Notification: Performance of Templates: time 0.3571/2.047, allocations: 148.5 MB / 1.089 GB, free: 75.86 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches