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.00177/0.00177, allocations: 101.8 kB / 16.62 MB, free: 6.812 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.001665/0.001666, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.307/1.307, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000987/0.000987, allocations: 46.89 kB / 300.1 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08942/0.09042, allocations: 49.44 MB / 349.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2169/0.3074, allocations: 75.34 MB / 424.9 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03472/0.3421, allocations: 14.84 MB / 439.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01566/0.3578, allocations: 339.1 kB / 440.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008182/0.3661, allocations: 4.281 MB / 444.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006817/0.373, allocations: 2.351 MB / 446.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002406/0.3754, allocations: 1.081 MB / 447.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.386, allocations: 8.533 MB / 456.3 MB, free: 9.949 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006302/0.3924, allocations: 5.58 MB / 461.9 MB, free: 4.316 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003551/0.3959, allocations: 2.515 MB / 464.4 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004372/0.4003, allocations: 3.731 MB / 468.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001007/0.4014, allocations: 0.5039 MB / 468.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002643/0.404, allocations: 1.518 MB / 470.2 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002596/0.4066, allocations: 2.989 MB / 473.2 MB, free: 9.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003152/0.4098, allocations: 3.375 MB / 476.5 MB, free: 5.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009908/0.4197, allocations: 10.11 MB / 486.7 MB, free: 11.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.4197, allocations: 8 kB / 486.7 MB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4198, allocations: 3.938 kB / 486.7 MB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000266/0.42, allocations: 0 / 486.7 MB, free: 11.48 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.01611/0.4361, allocations: 7.608 MB / 494.3 MB, free: 3.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.4362, allocations: 8.031 kB / 494.3 MB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01417/0.4504, allocations: 3.179 MB / 497.5 MB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009781/0.4602, allocations: 4.731 MB / 0.4904 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002683/0.4605, allocations: 337.2 kB / 0.4907 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001464/0.462, allocations: 467.5 kB / 0.4912 GB, free: 10.99 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02636/0.4884, allocations: 14.56 MB / 0.5054 GB, free: 11.49 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004147/0.4888, allocations: 79.27 kB / 0.5055 GB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00161/0.4905, allocations: 211.8 kB / 0.5057 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005749/0.4962, allocations: 2.832 MB / 0.5085 GB, free: 8.363 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0279/0.5242, allocations: 13.22 MB / 0.5214 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2713/0.7955, allocations: 58.51 MB / 0.5785 GB, free: 111.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01638/0.8119, allocations: 7.731 MB / 0.586 GB, free: 107.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005173/0.8171, allocations: 5.054 MB / 0.591 GB, free: 104.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01752/0.8347, allocations: 12.8 MB / 0.6035 GB, free: 93.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/0.8347, allocations: 76.58 kB / 0.6036 GB, free: 93.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.653e-06/0.8348, allocations: 3.938 kB / 0.6036 GB, free: 93.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.925/2.76, allocations: 411.4 MB / 1.005 GB, free: 16.47 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/2.76, allocations: 269.6 kB / 1.006 GB, free: 16.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006447/2.766, allocations: 5.456 MB / 1.011 GB, free: 10.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001966/2.768, allocations: 117.7 kB / 1.011 GB, free: 10.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/2.77, allocations: 3.936 MB / 1.015 GB, free: 6.668 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1837/2.954, allocations: 2.002 MB / 1.017 GB, free: 135.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005752/2.96, allocations: 2.175 MB / 1.019 GB, free: 135.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.691e-05/2.96, allocations: 301.1 kB / 1.019 GB, free: 135.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01608/2.976, allocations: 11.07 MB / 1.03 GB, free: 131.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01452/2.991, allocations: 15.23 MB / 1.045 GB, free: 122 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02828/3.019, allocations: 27.46 MB / 1.072 GB, free: 101.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/3.019, allocations: 40 kB / 1.072 GB, free: 101.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5171/3.536, allocations: 141.1 MB / 1.21 GB, free: 130.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.352e-05/3.536, allocations: 65.88 kB / 1.21 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/3.536, allocations: 138.3 kB / 1.21 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07465/3.611, allocations: 34.72 MB / 1.244 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004351/3.616, allocations: 1.565 MB / 1.245 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4148/4.03, allocations: 203.6 MB / 1.444 GB, free: 70.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01391/4.044, allocations: 1.719 MB / 1.446 GB, free: 69.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002476/4.047, allocations: 0.5388 MB / 1.446 GB, free: 68.51 MB / 462.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.006263/4.053, allocations: 3.091 MB / 1.449 GB, free: 65.62 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0019/4.055, allocations: 0.5723 MB / 1.45 GB, free: 65.35 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4826/4.538, allocations: 136.7 MB / 1.583 GB, free: 93.95 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.747e-05/4.538, allocations: 60 kB / 1.583 GB, free: 93.89 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001417/4.538, allocations: 56 kB / 1.583 GB, free: 93.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001157/4.538, allocations: 27.91 kB / 1.583 GB, free: 93.81 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.536/5.074, allocations: 206.2 MB / 1.785 GB, free: 86.88 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.344e-05/5.074, allocations: 8 kB / 1.785 GB, free: 86.88 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001448/5.076, allocations: 332.9 kB / 1.785 GB, free: 86.56 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0677/5.143, allocations: 33.47 MB / 1.818 GB, free: 55.21 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002165/5.145, allocations: 99.98 kB / 1.818 GB, free: 55.11 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.442/5.587, allocations: 186.2 MB / 2 GB, free: 40.13 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/5.588, allocations: 8 kB / 2 GB, free: 40.12 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4812/6.069, allocations: 152.5 MB / 2.149 GB, free: 55.64 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/6.07, allocations: 0.6316 MB / 2.149 GB, free: 55.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002828/6.073, allocations: 100 kB / 2.149 GB, free: 55.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009058/6.082, allocations: 1.485 MB / 2.151 GB, free: 53.72 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003825/6.086, allocations: 494.5 kB / 2.151 GB, free: 53.24 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009185/6.087, allocations: 152.9 kB / 2.151 GB, free: 53.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004568/6.092, allocations: 3.467 MB / 2.155 GB, free: 49.66 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/6.092, allocations: 0 / 2.155 GB, free: 49.66 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01175/6.103, allocations: 3.86 MB / 2.159 GB, free: 45.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001265/6.105, allocations: 250.4 kB / 2.159 GB, free: 45.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2318/6.337, allocations: 38.83 MB / 2.197 GB, free: 140.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-05/6.337, allocations: 0 / 2.197 GB, free: 140.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.04094/6.378, allocations: 20.55 MB / 2.217 GB, free: 139.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006279/6.384, allocations: 0.779 MB / 2.218 GB, free: 139.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03791/6.422, allocations: 30.43 MB / 2.247 GB, free: 126.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006178/6.428, allocations: 5.092 MB / 2.252 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004652/6.433, allocations: 2.058 MB / 2.254 GB, free: 121.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008004/6.434, allocations: 311.4 kB / 2.255 GB, free: 121 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/6.434, allocations: 0 / 2.255 GB, free: 121 MB / 478.1 MB Notification: Performance of Templates: time 0.6835/7.117, allocations: 280.9 MB / 2.529 GB, free: 152.7 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