Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.0009449/0.000945, allocations: 87.88 kB / 16.31 MB, free: 6.449 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.0009074/0.0009074, allocations: 180.7 kB / 17.21 MB, free: 6.32 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.386/1.386, allocations: 223.3 MB / 241.2 MB, free: 5.25 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002803/0.0002804, allocations: 8.625 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1177, allocations: 50.42 MB / 351.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.06463/0.1824, allocations: 68.35 MB / 419.6 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2473/0.4298, allocations: 14.27 MB / 433.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01197/0.4418, allocations: 337.8 kB / 434.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01209/0.4539, allocations: 3.56 MB / 437.7 MB, free: 480 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03228/0.4862, allocations: 10.47 MB / 448.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006798/0.493, allocations: 0.9974 MB / 449.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1134/0.6064, allocations: 91.51 MB / 0.5281 GB, free: 15.24 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01091/0.6174, allocations: 6.596 MB / 0.5345 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004709/0.6221, allocations: 2.007 MB / 0.5365 GB, free: 8.691 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005313/0.6275, allocations: 3.151 MB / 0.5395 GB, free: 6.059 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001243/0.6287, allocations: 216 kB / 0.5397 GB, free: 5.848 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002972/0.6317, allocations: 1.108 MB / 0.5408 GB, free: 4.914 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003265/0.635, allocations: 2.593 MB / 0.5434 GB, free: 2.766 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001773/0.6368, allocations: 1.209 MB / 0.5445 GB, free: 2.086 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009287/0.6461, allocations: 7.934 MB / 0.5523 GB, free: 11.2 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.6461, allocations: 4 kB / 0.5523 GB, free: 11.2 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.318e-06/0.6461, allocations: 0 / 0.5523 GB, free: 11.2 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003357/0.6465, allocations: 3.938 kB / 0.5523 GB, free: 11.2 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.01399/0.6605, allocations: 6.374 MB / 0.5585 GB, free: 5.301 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.6606, allocations: 8.031 kB / 0.5585 GB, free: 5.293 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01388/0.6744, allocations: 3.244 MB / 0.5617 GB, free: 2.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009988/0.6845, allocations: 4.624 MB / 0.5662 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003215/0.6848, allocations: 337.9 kB / 0.5665 GB, free: 14.44 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001976/0.6868, allocations: 467.8 kB / 0.567 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02955/0.7164, allocations: 14.57 MB / 0.5812 GB, free: 1.652 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002443/0.7167, allocations: 71.38 kB / 0.5813 GB, free: 1.582 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007942/0.7175, allocations: 216 kB / 0.5815 GB, free: 1.418 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005036/0.7225, allocations: 2.828 MB / 0.5842 GB, free: 14.6 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02662/0.7492, allocations: 13.19 MB / 0.5971 GB, free: 1.383 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3085/1.058, allocations: 58.48 MB / 0.6542 GB, free: 140.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01514/1.073, allocations: 7.723 MB / 0.6618 GB, free: 133.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004855/1.078, allocations: 5.04 MB / 0.6667 GB, free: 128.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01578/1.094, allocations: 12.81 MB / 0.6792 GB, free: 115.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.199e-05/1.094, allocations: 66.73 kB / 0.6793 GB, free: 115.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 5.661e-06/1.094, allocations: 3.375 kB / 0.6793 GB, free: 115.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.88/2.974, allocations: 407.2 MB / 1.077 GB, free: 84.34 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.603e-05/2.974, allocations: 265.6 kB / 1.077 GB, free: 84.03 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006736/2.981, allocations: 5.419 MB / 1.082 GB, free: 78.79 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001977/2.983, allocations: 114.5 kB / 1.083 GB, free: 78.67 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002198/2.985, allocations: 3.945 MB / 1.086 GB, free: 75.35 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002957/2.988, allocations: 2.004 MB / 1.088 GB, free: 73.36 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001/2.989, allocations: 196 kB / 1.089 GB, free: 73.17 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003502/2.989, allocations: 0.7151 MB / 1.089 GB, free: 72.45 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01248/3.002, allocations: 11.03 MB / 1.1 GB, free: 61.41 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01553/3.018, allocations: 15.21 MB / 1.115 GB, free: 44.36 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01648/3.034, allocations: 12.88 MB / 1.127 GB, free: 31.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001001/3.034, allocations: 40 kB / 1.127 GB, free: 31.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5196/3.554, allocations: 140.9 MB / 1.265 GB, free: 60.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.689e-05/3.554, allocations: 66.88 kB / 1.265 GB, free: 60.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001306/3.554, allocations: 140 kB / 1.265 GB, free: 60 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07404/3.628, allocations: 34.8 MB / 1.299 GB, free: 25.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2441/3.872, allocations: 1.573 MB / 1.301 GB, free: 148.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4768/4.349, allocations: 190.5 MB / 1.487 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01279/4.362, allocations: 1.718 MB / 1.489 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002377/4.364, allocations: 0.533 MB / 1.489 GB, free: 135 MB / 478.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.006513/4.371, allocations: 3.095 MB / 1.492 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002031/4.373, allocations: 0.5731 MB / 1.493 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2829/4.656, allocations: 136.6 MB / 1.626 GB, free: 28.43 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.228e-05/4.656, allocations: 56.75 kB / 1.626 GB, free: 28.38 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001377/4.656, allocations: 63.62 kB / 1.626 GB, free: 28.32 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001072/4.656, allocations: 27.89 kB / 1.626 GB, free: 28.29 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7807/5.437, allocations: 206.1 MB / 1.827 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-05/5.437, allocations: 6.406 kB / 1.827 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/5.439, allocations: 337.4 kB / 1.828 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06985/5.508, allocations: 33.9 MB / 1.861 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002034/5.511, allocations: 105.3 kB / 1.861 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4417/5.952, allocations: 173.4 MB / 2.03 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.435e-06/5.952, allocations: 12.94 kB / 2.03 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5817/6.534, allocations: 152.4 MB / 2.179 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/6.536, allocations: 0.6345 MB / 2.18 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002618/6.538, allocations: 97.34 kB / 2.18 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008422/6.547, allocations: 1.49 MB / 2.181 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003081/6.55, allocations: 0.49 MB / 2.182 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009585/6.551, allocations: 136.8 kB / 2.182 GB, free: 130 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004748/6.556, allocations: 3.445 MB / 2.185 GB, free: 129.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.51e-07/6.556, allocations: 0 / 2.185 GB, free: 129.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01382/6.57, allocations: 3.853 MB / 2.189 GB, free: 129.8 MB / 478.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.001731/6.571, allocations: 246.8 kB / 2.189 GB, free: 129.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05214/6.623, allocations: 33.67 MB / 2.222 GB, free: 109.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-05/6.623, allocations: 0 / 2.222 GB, free: 109.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.035/6.658, allocations: 20.5 MB / 2.242 GB, free: 89.65 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006229/6.665, allocations: 0.7436 MB / 2.243 GB, free: 88.93 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03406/6.699, allocations: 29.67 MB / 2.272 GB, free: 59.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005401/6.704, allocations: 5.103 MB / 2.277 GB, free: 54.07 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004707/6.709, allocations: 2.053 MB / 2.279 GB, free: 52.01 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00078/6.71, allocations: 307.4 kB / 2.279 GB, free: 51.71 MB / 478.1 MB Notification: Performance of SimCode: time 2.585e-06/6.71, allocations: 4 kB / 2.279 GB, free: 51.71 MB / 478.1 MB Notification: Performance of Templates: time 0.7475/7.457, allocations: 257.1 MB / 2.53 GB, free: 122.5 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches