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.001109/0.001109, allocations: 111 kB / 17.06 MB, free: 5.969 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.00113/0.00113, allocations: 200 kB / 18.01 MB, free: 5.055 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.33/1.33, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009994/0.0009994, allocations: 55.91 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2696, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01616/0.2858, allocations: 15.92 MB / 416.6 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.2966, allocations: 5.108 MB / 421.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002623/0.2993, allocations: 111.6 kB / 421.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007224/0.3065, allocations: 4.446 MB / 426.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006605/0.3132, allocations: 2.528 MB / 428.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002428/0.3156, allocations: 1.154 MB / 430 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01141/0.327, allocations: 7.96 MB / 438 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006243/0.3333, allocations: 5.319 MB / 443.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003946/0.3373, allocations: 2.461 MB / 445.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004628/0.342, allocations: 3.372 MB / 449.1 MB, free: 8.285 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001059/0.343, allocations: 0.5039 MB / 449.6 MB, free: 7.781 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002756/0.3458, allocations: 1.502 MB / 451.1 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00262/0.3484, allocations: 2.996 MB / 454.1 MB, free: 3.273 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004026/0.3525, allocations: 3.352 MB / 457.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.3637, allocations: 10.36 MB / 467.8 MB, free: 5.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3638, allocations: 0 / 467.8 MB, free: 5.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3638, allocations: 0 / 467.8 MB, free: 5.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002956/0.3641, allocations: 0 / 467.8 MB, free: 5.512 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.0188/0.3829, allocations: 7.605 MB / 475.4 MB, free: 13.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3829, allocations: 12.03 kB / 475.4 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01533/0.3983, allocations: 3.179 MB / 478.6 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01248/0.4108, allocations: 4.825 MB / 483.4 MB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003581/0.4112, allocations: 337.1 kB / 483.8 MB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002032/0.4132, allocations: 471.5 kB / 484.2 MB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03115/0.4444, allocations: 14.56 MB / 498.8 MB, free: 5.422 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003705/0.4448, allocations: 71.33 kB / 498.9 MB, free: 5.352 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001889/0.4467, allocations: 215.8 kB / 499.1 MB, free: 5.141 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005866/0.4526, allocations: 2.836 MB / 0.4901 GB, free: 2.301 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02797/0.4806, allocations: 13.21 MB / 0.503 GB, free: 5.059 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3496/0.8303, allocations: 58.25 MB / 0.5599 GB, free: 93.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01609/0.8464, allocations: 7.737 MB / 0.5675 GB, free: 91.73 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004972/0.8514, allocations: 5.053 MB / 0.5724 GB, free: 89.71 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01682/0.8683, allocations: 12.8 MB / 0.5849 GB, free: 81.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.073e-05/0.8684, allocations: 71.58 kB / 0.585 GB, free: 81.35 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.232e-06/0.8684, allocations: 0 / 0.585 GB, free: 81.35 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.122/2.99, allocations: 411.4 MB / 0.9868 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/2.99, allocations: 265.6 kB / 0.987 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006716/2.997, allocations: 5.451 MB / 0.9924 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001793/2.999, allocations: 113.6 kB / 0.9925 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002042/3.001, allocations: 3.937 MB / 0.9963 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002637/3.003, allocations: 2.016 MB / 0.9983 GB, free: 154.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004111/3.008, allocations: 2.177 MB / 1 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.797e-05/3.008, allocations: 301.1 kB / 1.001 GB, free: 152 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01272/3.02, allocations: 11.07 MB / 1.012 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01576/3.036, allocations: 15.24 MB / 1.026 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02916/3.065, allocations: 27.44 MB / 1.053 GB, free: 94.48 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001533/3.066, allocations: 40 kB / 1.053 GB, free: 94.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6363/3.702, allocations: 141.1 MB / 1.191 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.191e-05/3.702, allocations: 64 kB / 1.191 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/3.702, allocations: 145.2 kB / 1.191 GB, free: 141.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07705/3.779, allocations: 34.69 MB / 1.225 GB, free: 107.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005044/3.784, allocations: 1.569 MB / 1.227 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5066/4.291, allocations: 203.6 MB / 1.425 GB, free: 97.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02377/4.315, allocations: 1.721 MB / 1.427 GB, free: 96.44 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003672/4.319, allocations: 0.531 MB / 1.428 GB, free: 95.91 MB / 0.5294 GB 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.01084/4.329, allocations: 3.101 MB / 1.431 GB, free: 92.94 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003766/4.333, allocations: 0.5734 MB / 1.431 GB, free: 92.66 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5521/4.885, allocations: 136.7 MB / 1.565 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.208e-05/4.885, allocations: 58.25 kB / 1.565 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001332/4.886, allocations: 59.03 kB / 1.565 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000111/4.886, allocations: 31.58 kB / 1.565 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5866/5.472, allocations: 205.9 MB / 1.766 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.806e-05/5.472, allocations: 7.781 kB / 1.766 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/5.474, allocations: 331.4 kB / 1.766 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07053/5.544, allocations: 33.43 MB / 1.799 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001505/5.546, allocations: 103.8 kB / 1.799 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4296/5.976, allocations: 186.2 MB / 1.981 GB, free: 122.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/5.976, allocations: 10.94 kB / 1.981 GB, free: 122.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5532/6.529, allocations: 152.5 MB / 2.13 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/6.53, allocations: 0.6289 MB / 2.13 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002126/6.532, allocations: 94.44 kB / 2.13 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00914/6.542, allocations: 1.489 MB / 2.132 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003509/6.545, allocations: 0.4931 MB / 2.132 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009095/6.546, allocations: 140.9 kB / 2.133 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004131/6.55, allocations: 3.469 MB / 2.136 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.61e-07/6.55, allocations: 0 / 2.136 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01186/6.562, allocations: 3.852 MB / 2.14 GB, free: 145.9 MB / 0.5294 GB 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.001527/6.564, allocations: 241.7 kB / 2.14 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.05346/6.617, allocations: 33.82 MB / 2.173 GB, free: 125 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/6.617, allocations: 0 / 2.173 GB, free: 125 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03744/6.655, allocations: 20.54 MB / 2.193 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006666/6.661, allocations: 0.7796 MB / 2.194 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03747/6.699, allocations: 27.08 MB / 2.22 GB, free: 77.35 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0058/6.705, allocations: 5.106 MB / 2.225 GB, free: 72.23 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004192/6.709, allocations: 2.053 MB / 2.227 GB, free: 70.24 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007677/6.71, allocations: 315.3 kB / 2.228 GB, free: 69.93 MB / 0.5294 GB Notification: Performance of SimCode: time 7.82e-07/6.71, allocations: 0 / 2.228 GB, free: 69.93 MB / 0.5294 GB Notification: Performance of Templates: time 0.81/7.52, allocations: 281.9 MB / 2.503 GB, free: 117.5 MB / 0.545 GB 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