Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 191.2 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.253/1.253, allocations: 226.6 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000815/0.000815, allocations: 92.59 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002162/0.0002163, allocations: 4 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2069, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.05133/0.2583, allocations: 68.37 MB / 476.4 MB, free: 7.16 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02838/0.2867, allocations: 14.31 MB / 490.7 MB, free: 8.816 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01128/0.298, allocations: 335.1 kB / 491 MB, free: 8.488 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009563/0.3076, allocations: 3.561 MB / 494.6 MB, free: 4.91 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02499/0.3327, allocations: 10.47 MB / 0.4932 GB, free: 10.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005103/0.3378, allocations: 1.053 MB / 0.4943 GB, free: 9.352 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2885/0.6263, allocations: 91.73 MB / 0.5838 GB, free: 2.707 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01008/0.6365, allocations: 7.063 MB / 0.5907 GB, free: 13.69 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004201/0.6407, allocations: 2.009 MB / 0.5927 GB, free: 12.34 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005288/0.646, allocations: 3.153 MB / 0.5958 GB, free: 10.1 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001297/0.6474, allocations: 216 kB / 0.596 GB, free: 9.887 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003085/0.6504, allocations: 1.254 MB / 0.5972 GB, free: 8.898 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003037/0.6535, allocations: 2.596 MB / 0.5997 GB, free: 7.016 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004668/0.6582, allocations: 2.81 MB / 0.6025 GB, free: 6.016 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.6685, allocations: 7.939 MB / 0.6102 GB, free: 15.14 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.6686, allocations: 0 / 0.6102 GB, free: 15.14 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6686, allocations: 0 / 0.6102 GB, free: 15.14 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003785/0.669, allocations: 4 kB / 0.6102 GB, free: 15.14 MB / 442.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.01535/0.6843, allocations: 6.357 MB / 0.6165 GB, free: 9.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.6844, allocations: 12.03 kB / 0.6165 GB, free: 9.258 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01416/0.6986, allocations: 3.366 MB / 0.6198 GB, free: 6.027 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/0.7101, allocations: 4.637 MB / 0.6243 GB, free: 2.617 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003271/0.7105, allocations: 341.4 kB / 0.6246 GB, free: 2.434 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001893/0.7124, allocations: 464.1 kB / 0.6251 GB, free: 2.133 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.027/0.7394, allocations: 14.56 MB / 0.6393 GB, free: 6.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002536/0.7397, allocations: 70.53 kB / 0.6393 GB, free: 6.734 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008384/0.7405, allocations: 210.5 kB / 0.6395 GB, free: 6.672 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005348/0.7459, allocations: 2.834 MB / 0.6423 GB, free: 4.293 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02773/0.7737, allocations: 13.19 MB / 0.6552 GB, free: 11 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2841/1.058, allocations: 58.51 MB / 0.7123 GB, free: 159.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01749/1.075, allocations: 7.725 MB / 0.7199 GB, free: 158.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005906/1.081, allocations: 5.036 MB / 0.7248 GB, free: 156 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01957/1.101, allocations: 12.82 MB / 0.7373 GB, free: 146.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.62e-05/1.101, allocations: 72.2 kB / 0.7374 GB, free: 146.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=326): time 5.861e-06/1.101, allocations: 3.5 kB / 0.7374 GB, free: 146.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=572): time 1.867/2.968, allocations: 407.3 MB / 1.135 GB, free: 131.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/2.968, allocations: 273.6 kB / 1.135 GB, free: 131.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01086/2.979, allocations: 5.41 MB / 1.141 GB, free: 126.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00176/2.98, allocations: 114.6 kB / 1.141 GB, free: 126.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002266/2.983, allocations: 3.949 MB / 1.145 GB, free: 122.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002442/2.985, allocations: 2.006 MB / 1.147 GB, free: 120.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001169/2.986, allocations: 196 kB / 1.147 GB, free: 120.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003448/2.987, allocations: 0.7151 MB / 1.148 GB, free: 119.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01304/3, allocations: 11.03 MB / 1.158 GB, free: 108.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0158/3.016, allocations: 15.2 MB / 1.173 GB, free: 91.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02944/3.045, allocations: 27.39 MB / 1.2 GB, free: 62.63 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001626/3.045, allocations: 40 kB / 1.2 GB, free: 62.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5051/3.55, allocations: 141.1 MB / 1.338 GB, free: 98.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002555/3.551, allocations: 64 kB / 1.338 GB, free: 98.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002762/3.551, allocations: 136 kB / 1.338 GB, free: 98.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07475/3.626, allocations: 34.8 MB / 1.372 GB, free: 64.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005037/3.631, allocations: 1.569 MB / 1.373 GB, free: 62.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4606/4.091, allocations: 190.5 MB / 1.559 GB, free: 50.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01197/4.103, allocations: 1.723 MB / 1.561 GB, free: 49.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002361/4.106, allocations: 0.5435 MB / 1.562 GB, free: 48.53 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * 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.007196/4.113, allocations: 3.096 MB / 1.565 GB, free: 45.57 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002466/4.116, allocations: 0.5722 MB / 1.565 GB, free: 45.07 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5144/4.63, allocations: 136.7 MB / 1.699 GB, free: 86.01 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.164e-05/4.63, allocations: 60.92 kB / 1.699 GB, free: 85.95 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001723/4.63, allocations: 60 kB / 1.699 GB, free: 85.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001149/4.63, allocations: 26.81 kB / 1.699 GB, free: 85.87 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5678/5.198, allocations: 206.2 MB / 1.9 GB, free: 68.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.242e-05/5.198, allocations: 4 kB / 1.9 GB, free: 68.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/5.2, allocations: 334.2 kB / 1.901 GB, free: 68.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07161/5.271, allocations: 33.91 MB / 1.934 GB, free: 34.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001766/5.273, allocations: 107.9 kB / 1.934 GB, free: 34.22 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4327/5.706, allocations: 173.5 MB / 2.103 GB, free: 33.49 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/5.706, allocations: 11.94 kB / 2.103 GB, free: 33.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5561/6.262, allocations: 152.5 MB / 2.252 GB, free: 51.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001763/6.264, allocations: 0.6432 MB / 2.253 GB, free: 51.14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003194/6.267, allocations: 95.94 kB / 2.253 GB, free: 51.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009085/6.276, allocations: 1.489 MB / 2.254 GB, free: 49.55 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003946/6.28, allocations: 0.4932 MB / 2.255 GB, free: 49.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00135/6.282, allocations: 140.5 kB / 2.255 GB, free: 48.93 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0056/6.287, allocations: 3.436 MB / 2.258 GB, free: 45.52 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.61e-07/6.287, allocations: 0 / 2.258 GB, free: 45.52 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01293/6.3, allocations: 3.852 MB / 2.262 GB, free: 41.67 MB / 490.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.00165/6.302, allocations: 250.6 kB / 2.262 GB, free: 41.43 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.2353/6.537, allocations: 33.67 MB / 2.295 GB, free: 152.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/6.537, allocations: 0 / 2.295 GB, free: 152.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03735/6.574, allocations: 20.51 MB / 2.315 GB, free: 151.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01029/6.585, allocations: 0.755 MB / 2.316 GB, free: 151.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0399/6.625, allocations: 30.25 MB / 2.346 GB, free: 131.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006764/6.632, allocations: 5.073 MB / 2.35 GB, free: 126.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001318/6.633, allocations: 355.4 kB / 2.351 GB, free: 126.1 MB / 490.7 MB Notification: Performance of SimCode: time 2.164e-06/6.633, allocations: 3.938 kB / 2.351 GB, free: 126.1 MB / 490.7 MB Notification: Performance of Templates: time 0.4497/7.083, allocations: 254.6 MB / 2.599 GB, free: 25.65 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches