Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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 3.2.3+maint.om/package.mo", uses=false) 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 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 98.58 kB / 16.95 MB, free: 6.453 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.001172/0.001173, allocations: 183.7 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007481/0.0007484, allocations: 15.44 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1187, allocations: 47.58 MB / 328.4 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2737/0.3924, allocations: 68.43 MB / 396.8 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04226/0.4347, allocations: 14.31 MB / 411.1 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01955/0.4543, allocations: 337.2 kB / 411.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.4655, allocations: 3.564 MB / 415 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03317/0.4987, allocations: 10.47 MB / 425.4 MB, free: 136 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006594/0.5053, allocations: 1.051 MB / 426.5 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.07153/0.5769, allocations: 51.71 MB / 478.2 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01574/0.5927, allocations: 6.619 MB / 484.8 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005901/0.5987, allocations: 2.031 MB / 486.9 MB, free: 8.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007126/0.6059, allocations: 3.17 MB / 490 MB, free: 4.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002193/0.6081, allocations: 216 kB / 490.2 MB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00381/0.6119, allocations: 1.096 MB / 491.3 MB, free: 3.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004225/0.6162, allocations: 2.602 MB / 493.9 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00307/0.6193, allocations: 1.22 MB / 495.2 MB, free: 15.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01372/0.633, allocations: 7.957 MB / 0.4913 GB, free: 7.703 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.093e-05/0.6331, allocations: 4 kB / 0.4913 GB, free: 7.699 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.399e-06/0.6331, allocations: 0 / 0.4913 GB, free: 7.699 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004379/0.6336, allocations: 0 / 0.4913 GB, free: 7.699 MB / 398.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.01949/0.653, allocations: 6.389 MB / 0.4976 GB, free: 1.227 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.948e-05/0.6531, allocations: 12.03 kB / 0.4976 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01502/0.6681, allocations: 3.244 MB / 0.5007 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01262/0.6808, allocations: 4.803 MB / 0.5054 GB, free: 9.074 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003865/0.6813, allocations: 332.7 kB / 0.5058 GB, free: 8.746 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002469/0.6837, allocations: 467.5 kB / 0.5062 GB, free: 8.289 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03337/0.7171, allocations: 14.56 MB / 0.5204 GB, free: 8.801 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000291/0.7175, allocations: 71.33 kB / 0.5205 GB, free: 8.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001014/0.7185, allocations: 211.8 kB / 0.5207 GB, free: 8.523 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005217/0.7237, allocations: 2.836 MB / 0.5235 GB, free: 5.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02762/0.7514, allocations: 13.19 MB / 0.5363 GB, free: 8.457 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3088/1.06, allocations: 58.5 MB / 0.5935 GB, free: 126.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01684/1.077, allocations: 7.72 MB / 0.601 GB, free: 121.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006252/1.083, allocations: 5.038 MB / 0.6059 GB, free: 116.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0211/1.105, allocations: 12.81 MB / 0.6184 GB, free: 104.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001112/1.105, allocations: 70.73 kB / 0.6185 GB, free: 104 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 1.112e-05/1.105, allocations: 3.938 kB / 0.6185 GB, free: 104 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.937/3.042, allocations: 407.2 MB / 1.016 GB, free: 38.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/3.042, allocations: 265.6 kB / 1.016 GB, free: 38.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008345/3.05, allocations: 5.458 MB / 1.022 GB, free: 32.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002032/3.052, allocations: 109.7 kB / 1.022 GB, free: 32.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002345/3.055, allocations: 3.945 MB / 1.026 GB, free: 28.92 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003131/3.058, allocations: 2.008 MB / 1.028 GB, free: 26.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001393/3.059, allocations: 192.9 kB / 1.028 GB, free: 26.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004351/3.06, allocations: 0.719 MB / 1.029 GB, free: 26.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2542/3.314, allocations: 11.02 MB / 1.039 GB, free: 147.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02067/3.335, allocations: 15.2 MB / 1.054 GB, free: 137.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01767/3.352, allocations: 12.9 MB / 1.067 GB, free: 132.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000196/3.353, allocations: 38.78 kB / 1.067 GB, free: 132.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5506/3.903, allocations: 140.9 MB / 1.204 GB, free: 129.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/3.903, allocations: 69.95 kB / 1.205 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000166/3.904, allocations: 137.5 kB / 1.205 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07349/3.977, allocations: 34.8 MB / 1.239 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00471/3.982, allocations: 1.572 MB / 1.24 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4702/4.452, allocations: 190.5 MB / 1.426 GB, free: 87.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01365/4.466, allocations: 1.721 MB / 1.428 GB, free: 86.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004224/4.47, allocations: 0.5368 MB / 1.428 GB, free: 85.57 MB / 446.1 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.01044/4.48, allocations: 3.097 MB / 1.431 GB, free: 83.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003647/4.484, allocations: 0.5757 MB / 1.432 GB, free: 82.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5231/5.007, allocations: 136.6 MB / 1.565 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.603e-05/5.007, allocations: 59.41 kB / 1.565 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001913/5.008, allocations: 64.83 kB / 1.566 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001395/5.008, allocations: 27.89 kB / 1.566 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5906/5.598, allocations: 206.1 MB / 1.767 GB, free: 93.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-05/5.598, allocations: 8 kB / 1.767 GB, free: 93.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/5.6, allocations: 330.3 kB / 1.767 GB, free: 93.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06766/5.668, allocations: 33.91 MB / 1.8 GB, free: 63.08 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002082/5.67, allocations: 101.1 kB / 1.8 GB, free: 62.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4237/6.094, allocations: 173.4 MB / 1.97 GB, free: 53.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/6.094, allocations: 10.34 kB / 1.97 GB, free: 53.81 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5471/6.641, allocations: 152.5 MB / 2.119 GB, free: 63.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006772/6.648, allocations: 3.014 MB / 2.122 GB, free: 60.38 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00288/6.65, allocations: 98.88 kB / 2.122 GB, free: 60.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00903/6.659, allocations: 1.486 MB / 2.123 GB, free: 58.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003724/6.663, allocations: 495.7 kB / 2.124 GB, free: 58.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001548/6.665, allocations: 144 kB / 2.124 GB, free: 58.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006653/6.671, allocations: 3.472 MB / 2.127 GB, free: 54.73 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/6.671, allocations: 0 / 2.127 GB, free: 54.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.02089/6.692, allocations: 3.858 MB / 2.131 GB, free: 50.88 MB / 462.1 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.002386/6.695, allocations: 246.9 kB / 2.131 GB, free: 50.65 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2734/6.968, allocations: 33.66 MB / 2.164 GB, free: 142.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/6.968, allocations: 0 / 2.164 GB, free: 142.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.04107/7.009, allocations: 20.5 MB / 2.184 GB, free: 141.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008055/7.018, allocations: 0.7512 MB / 2.185 GB, free: 141.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04117/7.059, allocations: 29.73 MB / 2.214 GB, free: 131 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006016/7.065, allocations: 5.125 MB / 2.219 GB, free: 127.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004814/7.07, allocations: 2.063 MB / 2.221 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008735/7.071, allocations: 302.5 kB / 2.221 GB, free: 125.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.332e-06/7.071, allocations: 4 kB / 2.221 GB, free: 125.4 MB / 462.1 MB Notification: Performance of Templates: time 0.5366/7.607, allocations: 257.3 MB / 2.472 GB, free: 14 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches