Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001212/0.001212, allocations: 97.02 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001571/0.001571, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.7 MB / 246.4 MB, free: 11.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002707/0.0002707, allocations: 8 kB / 307.1 MB, free: 1.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1018, allocations: 51.53 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2401/0.3419, allocations: 67.85 MB / 426.5 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03187/0.3739, allocations: 14.07 MB / 440.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01181/0.3857, allocations: 335.1 kB / 440.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008983/0.3947, allocations: 3.553 MB / 444.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02391/0.4186, allocations: 10.31 MB / 454.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003847/0.4225, allocations: 0.9908 MB / 455.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3325/0.7551, allocations: 91.64 MB / 0.5345 GB, free: 89.16 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01186/0.7669, allocations: 6.58 MB / 0.541 GB, free: 88.7 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006028/0.773, allocations: 1.998 MB / 0.5429 GB, free: 88.69 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005941/0.779, allocations: 3.143 MB / 0.546 GB, free: 88.68 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00111/0.7802, allocations: 220.9 kB / 0.5462 GB, free: 88.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003299/0.7835, allocations: 1.091 MB / 0.5473 GB, free: 88.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002526/0.786, allocations: 2.58 MB / 0.5498 GB, free: 88.68 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001471/0.7875, allocations: 1.199 MB / 0.551 GB, free: 88.65 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007566/0.7951, allocations: 7.897 MB / 0.5587 GB, free: 86.36 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.7951, allocations: 0 / 0.5587 GB, free: 86.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.7951, allocations: 0 / 0.5587 GB, free: 86.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003523/0.7955, allocations: 0 / 0.5587 GB, free: 86.36 MB / 446.1 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.01444/0.8099, allocations: 6.413 MB / 0.5649 GB, free: 82.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.81, allocations: 7.281 kB / 0.5649 GB, free: 82.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01327/0.8232, allocations: 3.359 MB / 0.5682 GB, free: 80.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008582/0.8318, allocations: 4.554 MB / 0.5727 GB, free: 77.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002086/0.8321, allocations: 337 kB / 0.573 GB, free: 77.4 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001253/0.8333, allocations: 464.5 kB / 0.5734 GB, free: 77.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02275/0.8561, allocations: 14.55 MB / 0.5876 GB, free: 65.76 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002056/0.8564, allocations: 76.83 kB / 0.5877 GB, free: 65.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006081/0.857, allocations: 215.5 kB / 0.5879 GB, free: 65.65 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004299/0.8613, allocations: 2.827 MB / 0.5907 GB, free: 63.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02334/0.8846, allocations: 13.19 MB / 0.6036 GB, free: 53.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06642/0.9511, allocations: 58.48 MB / 0.6607 GB, free: 476 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01866/0.9698, allocations: 7.722 MB / 0.6682 GB, free: 8.609 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006684/0.9765, allocations: 5.044 MB / 0.6731 GB, free: 3.559 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02113/0.9977, allocations: 12.81 MB / 0.6856 GB, free: 6.715 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.552e-05/0.9978, allocations: 64.69 kB / 0.6857 GB, free: 6.641 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 5.46e-06/0.9978, allocations: 0 / 0.6857 GB, free: 6.641 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.852/2.85, allocations: 407.4 MB / 1.084 GB, free: 64.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/2.85, allocations: 265.7 kB / 1.084 GB, free: 63.89 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008826/2.859, allocations: 5.416 MB / 1.089 GB, free: 58.5 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.00214/2.861, allocations: 114.4 kB / 1.089 GB, free: 58.38 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002367/2.864, allocations: 3.932 MB / 1.093 GB, free: 54.47 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00274/2.867, allocations: 2.014 MB / 1.095 GB, free: 52.47 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001161/2.868, allocations: 188.6 kB / 1.095 GB, free: 52.29 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0003397/2.868, allocations: 0.7268 MB / 1.096 GB, free: 51.55 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0123/2.88, allocations: 11.03 MB / 1.107 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2043/3.085, allocations: 15.19 MB / 1.121 GB, free: 175.4 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01821/3.103, allocations: 12.9 MB / 1.134 GB, free: 172.7 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.67e-05/3.103, allocations: 39.34 kB / 1.134 GB, free: 172.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3483/3.451, allocations: 141 MB / 1.272 GB, free: 66.61 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.509e-05/3.452, allocations: 67.06 kB / 1.272 GB, free: 66.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001298/3.452, allocations: 143.9 kB / 1.272 GB, free: 66.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0737/3.525, allocations: 34.81 MB / 1.306 GB, free: 31.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004793/3.53, allocations: 1.571 MB / 1.308 GB, free: 30.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4158/3.946, allocations: 190.5 MB / 1.494 GB, free: 35.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01371/3.96, allocations: 1.727 MB / 1.495 GB, free: 33.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002128/3.962, allocations: 0.5357 MB / 1.496 GB, free: 33.11 MB / 0.4981 GB 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.006117/3.968, allocations: 3.09 MB / 1.499 GB, free: 30.19 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001555/3.97, allocations: 0.5768 MB / 1.499 GB, free: 29.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5032/4.473, allocations: 136.7 MB / 1.633 GB, free: 91.56 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.043e-05/4.473, allocations: 56.88 kB / 1.633 GB, free: 91.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001786/4.473, allocations: 60 kB / 1.633 GB, free: 91.45 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001239/4.473, allocations: 24.69 kB / 1.633 GB, free: 91.42 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6058/5.079, allocations: 206.2 MB / 1.834 GB, free: 93.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6e-05/5.079, allocations: 8 kB / 1.834 GB, free: 93.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/5.081, allocations: 327.5 kB / 1.835 GB, free: 93.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06737/5.148, allocations: 33.92 MB / 1.868 GB, free: 59.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001635/5.15, allocations: 103.5 kB / 1.868 GB, free: 59.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4498/5.599, allocations: 173.5 MB / 2.037 GB, free: 66.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/5.6, allocations: 11.94 kB / 2.037 GB, free: 66.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5305/6.13, allocations: 152.5 MB / 2.186 GB, free: 96.21 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/6.132, allocations: 0.63 MB / 2.187 GB, free: 95.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003327/6.135, allocations: 104 kB / 2.187 GB, free: 95.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009356/6.145, allocations: 1.487 MB / 2.188 GB, free: 94.29 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003735/6.148, allocations: 0.4951 MB / 2.189 GB, free: 93.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001445/6.15, allocations: 142.2 kB / 2.189 GB, free: 93.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006911/6.157, allocations: 3.433 MB / 2.192 GB, free: 90.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.11e-07/6.157, allocations: 0 / 2.192 GB, free: 90.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01617/6.173, allocations: 3.837 MB / 2.196 GB, free: 86.42 MB / 0.4981 GB 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.001869/6.175, allocations: 242.1 kB / 2.196 GB, free: 86.19 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.053/6.228, allocations: 33.68 MB / 2.229 GB, free: 52.65 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/6.228, allocations: 0 / 2.229 GB, free: 52.65 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.2316/6.459, allocations: 20.5 MB / 2.249 GB, free: 163.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008113/6.468, allocations: 0.7544 MB / 2.25 GB, free: 163.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04276/6.51, allocations: 29.66 MB / 2.279 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005481/6.516, allocations: 5.097 MB / 2.284 GB, free: 156.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004867/6.521, allocations: 2.052 MB / 2.286 GB, free: 156.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008132/6.522, allocations: 312.5 kB / 2.286 GB, free: 156.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.012e-06/6.522, allocations: 0 / 2.286 GB, free: 156.2 MB / 0.4981 GB Notification: Performance of Templates: time 0.5256/7.047, allocations: 257 MB / 2.537 GB, free: 77.69 MB / 0.4981 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches