Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001593/0.001594, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.591/1.591, allocations: 227.7 MB / 247.7 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001942, allocations: 61.53 kB / 307.9 MB, free: 484 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.108, allocations: 50.54 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.1917/0.2998, allocations: 14.97 MB / 373.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0098/0.3096, allocations: 4.828 MB / 378.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002796/0.3124, allocations: 92.31 kB / 378.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006124/0.3186, allocations: 3.158 MB / 381.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007762/0.3264, allocations: 2.508 MB / 384 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002965/0.3294, allocations: 1.001 MB / 385 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01184/0.3413, allocations: 7.025 MB / 392 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006218/0.3475, allocations: 4.345 MB / 396.4 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004764/0.3523, allocations: 2.211 MB / 398.6 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005384/0.3578, allocations: 3.223 MB / 401.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001938/0.3597, allocations: 484 kB / 402.3 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004388/0.3641, allocations: 1.484 MB / 403.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004149/0.3683, allocations: 2.834 MB / 406.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006019/0.3744, allocations: 3.214 MB / 409.8 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01546/0.3898, allocations: 9.98 MB / 419.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.142e-05/0.3899, allocations: 0 / 419.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3899, allocations: 0 / 419.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003888/0.3903, allocations: 0 / 419.8 MB, free: 13.09 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02081/0.4111, allocations: 7.256 MB / 427 MB, free: 5.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.4112, allocations: 8.031 kB / 427 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01711/0.4283, allocations: 3.938 MB / 431 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009896/0.4383, allocations: 4.039 MB / 435 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003493/0.4387, allocations: 321.2 kB / 435.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002005/0.4407, allocations: 437.5 kB / 435.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03283/0.4735, allocations: 15.72 MB / 451.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001989/0.4738, allocations: 55.47 kB / 451.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009293/0.4747, allocations: 202.9 kB / 451.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005698/0.4804, allocations: 3.221 MB / 455 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02968/0.5101, allocations: 14.13 MB / 469.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09114/0.6013, allocations: 57.76 MB / 0.5145 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01539/0.6167, allocations: 6.566 MB / 0.5209 GB, free: 9.152 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005872/0.6226, allocations: 3.689 MB / 0.5245 GB, free: 5.449 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2084/0.8311, allocations: 14.64 MB / 0.5388 GB, free: 136.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/0.8312, allocations: 62.81 kB / 0.5389 GB, free: 136.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.224e-06/0.8312, allocations: 0.9375 kB / 0.5389 GB, free: 136.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1423/0.9736, allocations: 42.34 MB / 0.5802 GB, free: 113.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.331e-05/0.9737, allocations: 210 kB / 0.5804 GB, free: 112.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00603/0.9797, allocations: 5.473 MB / 0.5858 GB, free: 107.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007581/0.9805, allocations: 73.38 kB / 0.5858 GB, free: 107.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001814/0.9823, allocations: 4.351 MB / 0.5901 GB, free: 102.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001286/0.9836, allocations: 1.255 MB / 0.5913 GB, free: 101.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002193/0.9858, allocations: 1.855 MB / 0.5931 GB, free: 99.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.286e-05/0.9859, allocations: 305.1 kB / 0.5934 GB, free: 99.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005792/0.9917, allocations: 4.812 MB / 0.5981 GB, free: 94.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007337/0.999, allocations: 9.798 MB / 0.6077 GB, free: 82.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0144/1.013, allocations: 15.58 MB / 0.6229 GB, free: 64.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/1.014, allocations: 51.66 kB / 0.6229 GB, free: 64.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04219/1.056, allocations: 19.57 MB / 0.642 GB, free: 44.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001158/1.056, allocations: 80 kB / 0.6421 GB, free: 44.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/1.056, allocations: 172 kB / 0.6423 GB, free: 44.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02215/1.078, allocations: 5.944 MB / 0.6481 GB, free: 38.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006916/1.085, allocations: 2.109 MB / 0.6501 GB, free: 36.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02901/1.114, allocations: 26.14 MB / 0.6757 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007865/1.122, allocations: 0.5578 MB / 0.6762 GB, free: 9.469 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001814/1.124, allocations: 0.5117 MB / 0.6767 GB, free: 8.957 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006689/1.131, allocations: 3.099 MB / 0.6797 GB, free: 5.848 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001541/1.132, allocations: 497.5 kB / 0.6802 GB, free: 5.355 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03427/1.167, allocations: 12.93 MB / 0.6928 GB, free: 8.348 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001228/1.167, allocations: 59.5 kB / 0.6929 GB, free: 8.293 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.227e-05/1.167, allocations: 11.98 kB / 0.6929 GB, free: 8.281 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.132e-05/1.167, allocations: 15.95 kB / 0.6929 GB, free: 8.266 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2691/1.436, allocations: 24.56 MB / 0.7169 GB, free: 131.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.337e-05/1.436, allocations: 7.875 kB / 0.7169 GB, free: 131.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003093/1.439, allocations: 0.5744 MB / 0.7175 GB, free: 131.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01922/1.459, allocations: 4.974 MB / 0.7223 GB, free: 130.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008527/1.459, allocations: 57.33 kB / 0.7224 GB, free: 130.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02318/1.483, allocations: 21.36 MB / 0.7433 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/1.483, allocations: 7.906 kB / 0.7433 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03323/1.516, allocations: 17.45 MB / 0.7603 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001485/1.517, allocations: 0.5354 MB / 0.7608 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001232/1.519, allocations: 59.66 kB / 0.7609 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003166/1.522, allocations: 259.6 kB / 0.7611 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007535/1.523, allocations: 193.5 kB / 0.7613 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002689/1.523, allocations: 83.98 kB / 0.7614 GB, free: 100.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004609/1.527, allocations: 3.396 MB / 0.7647 GB, free: 97.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.528, allocations: 0 / 0.7647 GB, free: 97.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007923/1.535, allocations: 1.733 MB / 0.7664 GB, free: 95.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009076/1.536, allocations: 214.9 kB / 0.7666 GB, free: 95.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0217/1.558, allocations: 15.74 MB / 0.782 GB, free: 79.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.558, allocations: 0 / 0.782 GB, free: 79.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005243/1.563, allocations: 4.102 MB / 0.786 GB, free: 75.76 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004146/1.568, allocations: 0.6101 MB / 0.7866 GB, free: 75.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02493/1.593, allocations: 16.78 MB / 0.803 GB, free: 58.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005457/1.598, allocations: 4.603 MB / 0.8075 GB, free: 53.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002071/1.6, allocations: 419.4 kB / 0.8079 GB, free: 53.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.663e-06/1.6, allocations: 0 / 0.8079 GB, free: 53.34 MB / 462.1 MB Notification: Performance of Templates: time 0.3577/1.958, allocations: 149.4 MB / 0.9537 GB, free: 73.83 MB / 478.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches