Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008312/0.0008313, allocations: 86.41 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003338, allocations: 11.98 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2486, allocations: 47.56 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.05054/0.2992, allocations: 68.44 MB / 443.5 MB, free: 12.11 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03457/0.3338, allocations: 14.3 MB / 457.8 MB, free: 13.75 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0164/0.3503, allocations: 339.1 kB / 458.2 MB, free: 13.42 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01199/0.3623, allocations: 3.565 MB / 461.7 MB, free: 9.84 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02944/0.3918, allocations: 10.49 MB / 472.2 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005658/0.3975, allocations: 1.053 MB / 473.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.267/0.6645, allocations: 51.77 MB / 0.5127 GB, free: 30.48 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009901/0.6745, allocations: 7.102 MB / 0.5197 GB, free: 29.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003579/0.6781, allocations: 2.035 MB / 0.5217 GB, free: 29.76 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003803/0.6819, allocations: 3.163 MB / 0.5247 GB, free: 29.12 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009139/0.6829, allocations: 220 kB / 0.525 GB, free: 28.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002462/0.6853, allocations: 1.256 MB / 0.5262 GB, free: 27.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002227/0.6876, allocations: 2.609 MB / 0.5287 GB, free: 26.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003642/0.6912, allocations: 2.819 MB / 0.5315 GB, free: 25.02 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007273/0.6985, allocations: 7.955 MB / 0.5393 GB, free: 18.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.013e-05/0.6985, allocations: 3.062 kB / 0.5393 GB, free: 18.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6986, allocations: 0 / 0.5393 GB, free: 18.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003693/0.6989, allocations: 0 / 0.5393 GB, free: 18.11 MB / 378.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.01434/0.7133, allocations: 6.316 MB / 0.5454 GB, free: 12.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.7133, allocations: 8.031 kB / 0.5454 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01342/0.7268, allocations: 3.25 MB / 0.5486 GB, free: 9.148 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01124/0.7381, allocations: 4.887 MB / 0.5534 GB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/0.7383, allocations: 339.8 kB / 0.5537 GB, free: 5.398 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/0.7395, allocations: 462.4 kB / 0.5541 GB, free: 5.102 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02388/0.7634, allocations: 14.56 MB / 0.5684 GB, free: 9.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001855/0.7636, allocations: 76.02 kB / 0.5684 GB, free: 9.707 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006042/0.7642, allocations: 212 kB / 0.5686 GB, free: 9.648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005059/0.7693, allocations: 2.83 MB / 0.5714 GB, free: 7.273 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02601/0.7953, allocations: 13.19 MB / 0.5843 GB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08673/0.8821, allocations: 58.52 MB / 0.6414 GB, free: 9.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01829/0.9005, allocations: 7.731 MB / 0.649 GB, free: 1.973 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007021/0.9075, allocations: 5.041 MB / 0.6539 GB, free: 12.92 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02342/0.931, allocations: 12.8 MB / 0.6664 GB, free: 64 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.195/1.126, allocations: 68.78 kB / 0.6665 GB, free: 194.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=326): time 1.48e-05/1.126, allocations: 0.7812 kB / 0.6665 GB, free: 194.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=572): time 1.928/3.054, allocations: 407.2 MB / 1.064 GB, free: 169.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001682/3.054, allocations: 271.8 kB / 1.064 GB, free: 168.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00998/3.064, allocations: 5.454 MB / 1.07 GB, free: 166.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001962/3.066, allocations: 119.6 kB / 1.07 GB, free: 166.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002807/3.069, allocations: 3.936 MB / 1.074 GB, free: 163.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003173/3.072, allocations: 2.01 MB / 1.076 GB, free: 161.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002231/3.074, allocations: 195 kB / 1.076 GB, free: 161.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007212/3.075, allocations: 0.7235 MB / 1.077 GB, free: 160.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01416/3.089, allocations: 11.02 MB / 1.087 GB, free: 153.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01694/3.106, allocations: 15.21 MB / 1.102 GB, free: 136.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03132/3.137, allocations: 27.39 MB / 1.129 GB, free: 106.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001712/3.138, allocations: 40 kB / 1.129 GB, free: 106.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5475/3.685, allocations: 141 MB / 1.267 GB, free: 143.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.573e-05/3.685, allocations: 64 kB / 1.267 GB, free: 143.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001278/3.685, allocations: 140 kB / 1.267 GB, free: 143 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07304/3.758, allocations: 34.78 MB / 1.301 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004747/3.763, allocations: 1.568 MB / 1.302 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4431/4.206, allocations: 190.5 MB / 1.488 GB, free: 95.08 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01362/4.22, allocations: 1.721 MB / 1.49 GB, free: 94.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002885/4.223, allocations: 0.5303 MB / 1.491 GB, free: 93.6 MB / 474.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.007871/4.231, allocations: 3.1 MB / 1.494 GB, free: 91.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002/4.233, allocations: 0.5789 MB / 1.494 GB, free: 90.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5174/4.75, allocations: 136.6 MB / 1.628 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-05/4.75, allocations: 59.34 kB / 1.628 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00018/4.751, allocations: 60 kB / 1.628 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001228/4.751, allocations: 23.91 kB / 1.628 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5767/5.327, allocations: 206.2 MB / 1.829 GB, free: 110.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.59e-05/5.328, allocations: 4 kB / 1.829 GB, free: 110.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/5.329, allocations: 331.4 kB / 1.829 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06961/5.399, allocations: 33.9 MB / 1.862 GB, free: 81.38 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001886/5.401, allocations: 104 kB / 1.863 GB, free: 81.28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4367/5.837, allocations: 173.4 MB / 2.032 GB, free: 72.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/5.837, allocations: 11.5 kB / 2.032 GB, free: 72.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5322/6.37, allocations: 152.5 MB / 2.181 GB, free: 82.32 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006899/6.377, allocations: 3.009 MB / 2.184 GB, free: 79.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002553/6.379, allocations: 100 kB / 2.184 GB, free: 79.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008929/6.388, allocations: 1.486 MB / 2.185 GB, free: 78.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004533/6.393, allocations: 0.4927 MB / 2.186 GB, free: 77.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001402/6.394, allocations: 140.9 kB / 2.186 GB, free: 77.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004953/6.399, allocations: 3.464 MB / 2.189 GB, free: 73.95 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/6.399, allocations: 2.297 kB / 2.189 GB, free: 73.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01427/6.413, allocations: 3.859 MB / 2.193 GB, free: 70.1 MB / 474.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.001696/6.415, allocations: 246.5 kB / 2.193 GB, free: 69.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.05536/6.47, allocations: 33.67 MB / 2.226 GB, free: 36.33 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/6.47, allocations: 4 kB / 2.226 GB, free: 36.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2439/6.714, allocations: 20.48 MB / 2.246 GB, free: 151.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01235/6.727, allocations: 0.7516 MB / 2.247 GB, free: 151.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04522/6.772, allocations: 30.3 MB / 2.277 GB, free: 144 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007042/6.779, allocations: 5.074 MB / 2.281 GB, free: 142.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001334/6.781, allocations: 353.6 kB / 2.282 GB, free: 141.8 MB / 474.7 MB Notification: Performance of SimCode: time 8.11e-07/6.781, allocations: 0 / 2.282 GB, free: 141.8 MB / 474.7 MB Notification: Performance of Templates: time 0.5385/7.319, allocations: 254.9 MB / 2.531 GB, free: 37.7 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches