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.001027/0.001027, allocations: 97.88 kB / 16.93 MB, free: 5.984 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.0009992/0.0009994, allocations: 179.3 kB / 17.82 MB, free: 5.652 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.455/1.455, 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.0004648/0.000465, allocations: 12 kB / 280.7 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1057, allocations: 47.58 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2922/0.3979, allocations: 64.47 MB / 392.8 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.05005/0.448, allocations: 14.99 MB / 407.8 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02257/0.4706, allocations: 333 kB / 408.1 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01774/0.4884, allocations: 3.227 MB / 411.3 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.05065/0.5391, allocations: 9.253 MB / 420.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008411/0.5476, allocations: 0.9895 MB / 421.6 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.07821/0.6258, allocations: 40.37 MB / 462 MB, free: 72 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01321/0.6391, allocations: 6.57 MB / 468.5 MB, free: 9.438 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004365/0.6435, allocations: 1.678 MB / 470.2 MB, free: 7.754 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004295/0.6478, allocations: 2.239 MB / 472.4 MB, free: 5.508 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001447/0.6493, allocations: 220 kB / 472.7 MB, free: 5.293 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003659/0.653, allocations: 1.069 MB / 473.7 MB, free: 4.223 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00432/0.6573, allocations: 2.427 MB / 476.2 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002744/0.6601, allocations: 1.236 MB / 477.4 MB, free: 0.543 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.6723, allocations: 8.144 MB / 485.5 MB, free: 8.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.6724, allocations: 0 / 485.5 MB, free: 8.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.6724, allocations: 4 kB / 485.5 MB, free: 8.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005534/0.673, allocations: 0 / 485.5 MB, free: 8.375 MB / 382.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.02138/0.6943, allocations: 6.947 MB / 492.5 MB, free: 1.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.6944, allocations: 8.031 kB / 492.5 MB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06043/0.7549, allocations: 11.2 MB / 0.4919 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01512/0.77, allocations: 5.519 MB / 0.4973 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003776/0.7704, allocations: 340.6 kB / 0.4976 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002244/0.7727, allocations: 463.6 kB / 0.4981 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03449/0.8072, allocations: 14.67 MB / 0.5124 GB, free: 124 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002915/0.8075, allocations: 63.44 kB / 0.5124 GB, free: 60 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009801/0.8085, allocations: 211.9 kB / 0.5126 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005705/0.8142, allocations: 2.84 MB / 0.5154 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0296/0.8439, allocations: 13.23 MB / 0.5283 GB, free: 15.74 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2866/1.13, allocations: 58.48 MB / 0.5854 GB, free: 125.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01653/1.147, allocations: 8.005 MB / 0.5933 GB, free: 123 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02069/1.168, allocations: 12.81 MB / 0.6058 GB, free: 115.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/1.168, allocations: 68.27 kB / 0.6058 GB, free: 115.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 7.755e-06/1.168, allocations: 0 / 0.6058 GB, free: 115.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.977/3.145, allocations: 409.2 MB / 1.005 GB, free: 47.56 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/3.146, allocations: 261.7 kB / 1.006 GB, free: 47.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008566/3.154, allocations: 5.894 MB / 1.011 GB, free: 41.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002337/3.156, allocations: 120.2 kB / 1.012 GB, free: 41.26 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00237/3.159, allocations: 4.008 MB / 1.016 GB, free: 37.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002945/3.162, allocations: 2.003 MB / 1.017 GB, free: 35.28 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/3.163, allocations: 184 kB / 1.018 GB, free: 35.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003503/3.163, allocations: 0.6946 MB / 1.018 GB, free: 34.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01234/3.176, allocations: 10.84 MB / 1.029 GB, free: 23.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2109/3.387, allocations: 14.91 MB / 1.043 GB, free: 140.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01551/3.402, allocations: 12.68 MB / 1.056 GB, free: 135.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.629e-05/3.402, allocations: 36.44 kB / 1.056 GB, free: 135.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5163/3.918, allocations: 140.3 MB / 1.193 GB, free: 131.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001922/3.919, allocations: 65 kB / 1.193 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003303/3.919, allocations: 139.9 kB / 1.193 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09217/4.011, allocations: 34.65 MB / 1.227 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007102/4.018, allocations: 1.481 MB / 1.228 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4743/4.493, allocations: 197.5 MB / 1.421 GB, free: 90.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01417/4.507, allocations: 1.707 MB / 1.423 GB, free: 89.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002729/4.51, allocations: 0.5267 MB / 1.423 GB, free: 88.82 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * 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 (783): * Single equations (assignments): 776 * 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.007908/4.518, allocations: 3.09 MB / 1.426 GB, free: 86.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001944/4.52, allocations: 0.5908 MB / 1.427 GB, free: 85.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5233/5.043, allocations: 136.4 MB / 1.56 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/5.043, allocations: 56 kB / 1.56 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001831/5.043, allocations: 60 kB / 1.56 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001371/5.043, allocations: 27.89 kB / 1.56 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5771/5.621, allocations: 206.2 MB / 1.762 GB, free: 95.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.96e-05/5.621, allocations: 8 kB / 1.762 GB, free: 95.67 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/5.622, allocations: 328 kB / 1.762 GB, free: 95.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07315/5.696, allocations: 33.75 MB / 1.795 GB, free: 66.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002111/5.698, allocations: 99.98 kB / 1.795 GB, free: 66.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3963/6.094, allocations: 180.6 MB / 1.971 GB, free: 50.26 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/6.094, allocations: 13.88 kB / 1.971 GB, free: 50.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5196/6.614, allocations: 153 MB / 2.121 GB, free: 59.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009029/6.623, allocations: 3.018 MB / 2.124 GB, free: 56.39 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002775/6.626, allocations: 96.62 kB / 2.124 GB, free: 56.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009356/6.635, allocations: 1.485 MB / 2.125 GB, free: 54.81 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003237/6.638, allocations: 0.4915 MB / 2.126 GB, free: 54.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009583/6.639, allocations: 146 kB / 2.126 GB, free: 54.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004968/6.644, allocations: 3.819 MB / 2.13 GB, free: 50.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/6.644, allocations: 4 kB / 2.13 GB, free: 50.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01391/6.658, allocations: 3.819 MB / 2.133 GB, free: 46.57 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.001809/6.66, allocations: 266.2 kB / 2.134 GB, free: 46.32 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2345/6.894, allocations: 33.34 MB / 2.166 GB, free: 141.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/6.894, allocations: 0.875 kB / 2.166 GB, free: 141.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.04318/6.938, allocations: 20.46 MB / 2.186 GB, free: 140.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006635/6.944, allocations: 0.7162 MB / 2.187 GB, free: 140.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04406/6.988, allocations: 29.59 MB / 2.216 GB, free: 128.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007382/6.996, allocations: 5.259 MB / 2.221 GB, free: 124.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005385/7.001, allocations: 2.077 MB / 2.223 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/7.003, allocations: 311.4 kB / 2.223 GB, free: 122.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.403e-06/7.003, allocations: 0 / 2.223 GB, free: 122.5 MB / 462.1 MB Notification: Performance of Templates: time 0.5092/7.512, allocations: 258.1 MB / 2.475 GB, free: 10.12 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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