Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.001171, allocations: 93.81 kB / 16.3 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 186.6 kB / 17.2 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.2 MB / 241.1 MB, free: 5.145 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002599, allocations: 10.31 kB / 300.7 MB, free: 5.414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.09834, allocations: 50.43 MB / 351.1 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.0409/0.1393, allocations: 47.43 MB / 398.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02711/0.1664, allocations: 11.76 MB / 410.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01036/0.1769, allocations: 239.4 kB / 410.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008056/0.1849, allocations: 2.352 MB / 412.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0211/0.2061, allocations: 6.775 MB / 419.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004002/0.2101, allocations: 0.9034 MB / 420.6 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2678/0.4779, allocations: 48.15 MB / 468.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009428/0.4874, allocations: 6.527 MB / 475.3 MB, free: 9.254 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.49, allocations: 1.338 MB / 476.6 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002186/0.4922, allocations: 1.756 MB / 478.4 MB, free: 7.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005068/0.4927, allocations: 184 kB / 478.5 MB, free: 7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002094/0.4948, allocations: 1.162 MB / 479.7 MB, free: 6.066 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00169/0.4965, allocations: 2.031 MB / 481.7 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009196/0.4974, allocations: 1.04 MB / 482.8 MB, free: 4.266 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007244/0.5047, allocations: 7.537 MB / 490.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.5047, allocations: 0 / 490.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5047, allocations: 4 kB / 490.3 MB, free: 13.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002163/0.5049, allocations: 4 kB / 490.3 MB, free: 13.72 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.0107/0.5156, allocations: 5.199 MB / 495.5 MB, free: 8.891 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.5157, allocations: 8.031 kB / 495.5 MB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04257/0.5583, allocations: 7.949 MB / 0.4917 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008917/0.5672, allocations: 3.898 MB / 0.4955 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/0.5675, allocations: 307 kB / 0.4958 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009199/0.5684, allocations: 442.8 kB / 0.4962 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02184/0.5902, allocations: 12.46 MB / 0.5084 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/0.5904, allocations: 51 kB / 0.5084 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004545/0.5909, allocations: 188.4 kB / 0.5086 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003004/0.5939, allocations: 2.038 MB / 0.5106 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02031/0.6142, allocations: 10.53 MB / 0.5209 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05119/0.6654, allocations: 44.27 MB / 0.5641 GB, free: 2.211 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01246/0.6779, allocations: 4.848 MB / 0.5688 GB, free: 13.23 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.6894, allocations: 7.089 MB / 0.5758 GB, free: 5.938 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.6895, allocations: 47.56 kB / 0.5758 GB, free: 5.883 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 3.988e-06/0.6895, allocations: 0 / 0.5758 GB, free: 5.883 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.06269/0.7522, allocations: 19.47 MB / 0.5948 GB, free: 2.371 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.495e-05/0.7523, allocations: 205.8 kB / 0.595 GB, free: 2.133 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1744/0.9268, allocations: 4.704 MB / 0.5996 GB, free: 177.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004421/0.9272, allocations: 58.61 kB / 0.5997 GB, free: 177 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00197/0.9292, allocations: 3.561 MB / 0.6031 GB, free: 175.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000888/0.9301, allocations: 0.8254 MB / 0.6039 GB, free: 175.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002647/0.9304, allocations: 130.8 kB / 0.6041 GB, free: 175.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003262/0.9307, allocations: 0.5723 MB / 0.6046 GB, free: 174.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003555/0.9343, allocations: 2.2 MB / 0.6068 GB, free: 174.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004789/0.9391, allocations: 5.929 MB / 0.6126 GB, free: 170 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004648/0.9437, allocations: 3.557 MB / 0.616 GB, free: 169.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.638e-05/0.9438, allocations: 40.55 kB / 0.6161 GB, free: 169.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01421/0.958, allocations: 8.988 MB / 0.6249 GB, free: 165.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.434e-05/0.9581, allocations: 62.44 kB / 0.6249 GB, free: 165.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/0.9583, allocations: 132.8 kB / 0.625 GB, free: 165.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003199/0.9615, allocations: 1.217 MB / 0.6262 GB, free: 165.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003793/0.9653, allocations: 1.417 MB / 0.6276 GB, free: 165.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009107/0.9744, allocations: 7.747 MB / 0.6352 GB, free: 160.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004622/0.979, allocations: 339.8 kB / 0.6355 GB, free: 160.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004453/0.9795, allocations: 379.9 kB / 0.6359 GB, free: 160.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003306/0.9828, allocations: 2.483 MB / 0.6383 GB, free: 157.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005498/0.9834, allocations: 414.7 kB / 0.6387 GB, free: 157.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006155/0.9895, allocations: 3.868 MB / 0.6425 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/0.9896, allocations: 27.94 kB / 0.6425 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.9896, allocations: 8 kB / 0.6425 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.9896, allocations: 11.95 kB / 0.6425 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/1.005, allocations: 10.19 MB / 0.6525 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/1.005, allocations: 4 kB / 0.6525 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/1.006, allocations: 359 kB / 0.6528 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002923/1.009, allocations: 0.9809 MB / 0.6538 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/1.009, allocations: 40 kB / 0.6538 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007421/1.017, allocations: 6.43 MB / 0.6601 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.017, allocations: 9.812 kB / 0.6601 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008735/1.025, allocations: 7.234 MB / 0.6672 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/1.027, allocations: 467.7 kB / 0.6676 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004156/1.027, allocations: 45.44 kB / 0.6676 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/1.028, allocations: 111.9 kB / 0.6678 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/1.029, allocations: 145 kB / 0.6679 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/1.029, allocations: 65.39 kB / 0.668 GB, free: 126.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003351/1.032, allocations: 3.004 MB / 0.6709 GB, free: 123.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.032, allocations: 0 / 0.6709 GB, free: 123.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004408/1.037, allocations: 1.188 MB / 0.672 GB, free: 122.7 MB / 478.1 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 (173): * Single equations (assignments): 169 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004682/1.037, allocations: 230.5 kB / 0.6723 GB, free: 122.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006632/1.044, allocations: 5.471 MB / 0.6776 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.044, allocations: 0 / 0.6776 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/1.046, allocations: 1.837 MB / 0.6794 GB, free: 115.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/1.048, allocations: 0.5034 MB / 0.6799 GB, free: 114.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01529/1.063, allocations: 12.93 MB / 0.6925 GB, free: 101.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003225/1.066, allocations: 3.968 MB / 0.6964 GB, free: 97.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004288/1.071, allocations: 1.941 MB / 0.6983 GB, free: 95.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006081/1.071, allocations: 271.4 kB / 0.6986 GB, free: 95.48 MB / 478.1 MB Notification: Performance of SimCode: time 9.71e-07/1.071, allocations: 0 / 0.6986 GB, free: 95.48 MB / 478.1 MB Notification: Performance of Templates: time 0.06259/1.134, allocations: 43.06 MB / 0.7406 GB, free: 52.67 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches