Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 101.5 kB / 17.72 MB, free: 5.371 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.001775/0.001775, allocations: 192 kB / 18.66 MB, free: 4.445 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.431/1.431, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001193/0.001193, allocations: 59.91 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09772, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2271/0.3248, allocations: 15.07 MB / 390.2 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01062/0.3355, allocations: 4.822 MB / 395 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00329/0.3388, allocations: 92.19 kB / 395.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006094/0.345, allocations: 3.165 MB / 398.3 MB, free: 0 / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009188/0.3542, allocations: 2.556 MB / 400.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003262/0.3575, allocations: 0.9906 MB / 401.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01313/0.3707, allocations: 6.648 MB / 408.5 MB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0082/0.3789, allocations: 4.358 MB / 412.8 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005754/0.3847, allocations: 2.233 MB / 415.1 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006755/0.3915, allocations: 3.25 MB / 418.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002492/0.394, allocations: 484 kB / 418.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005354/0.3994, allocations: 1.49 MB / 420.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004809/0.4042, allocations: 2.895 MB / 423.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007712/0.412, allocations: 3.254 MB / 426.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01804/0.43, allocations: 10.44 MB / 436.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-05/0.4301, allocations: 4 kB / 436.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4302, allocations: 0 / 436.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005708/0.4307, allocations: 0 / 436.9 MB, free: 1.672 MB / 350.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.02263/0.4534, allocations: 7.295 MB / 444.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.4534, allocations: 8.031 kB / 444.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01764/0.4711, allocations: 3.939 MB / 448.1 MB, free: 6.332 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01145/0.4826, allocations: 4.275 MB / 452.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003489/0.483, allocations: 316.6 kB / 452.7 MB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002254/0.4853, allocations: 439.4 kB / 453.1 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03341/0.5187, allocations: 15.71 MB / 468.9 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002731/0.519, allocations: 63.45 kB / 468.9 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001946/0.521, allocations: 203.8 kB / 469.1 MB, free: 356 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005797/0.5268, allocations: 3.212 MB / 472.3 MB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03204/0.5588, allocations: 14.13 MB / 486.5 MB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1357/0.6946, allocations: 57.49 MB / 0.5312 GB, free: 3.914 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02729/0.7219, allocations: 6.569 MB / 0.5376 GB, free: 13.09 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00952/0.7315, allocations: 3.684 MB / 0.5412 GB, free: 9.391 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2893/1.021, allocations: 14.63 MB / 0.5555 GB, free: 145 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/1.021, allocations: 63.03 kB / 0.5556 GB, free: 144.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 5.972e-06/1.021, allocations: 0 / 0.5556 GB, free: 144.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1395/1.16, allocations: 42.4 MB / 0.597 GB, free: 127 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.716e-05/1.161, allocations: 217.9 kB / 0.5972 GB, free: 126.8 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00593/1.166, allocations: 5.49 MB / 0.6025 GB, free: 121.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007857/1.167, allocations: 77.62 kB / 0.6026 GB, free: 121.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001793/1.169, allocations: 4.355 MB / 0.6069 GB, free: 116.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001167/1.17, allocations: 1.26 MB / 0.6081 GB, free: 115.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002212/1.172, allocations: 1.853 MB / 0.6099 GB, free: 113.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.698e-05/1.173, allocations: 305.1 kB / 0.6102 GB, free: 113.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005149/1.178, allocations: 4.808 MB / 0.6149 GB, free: 108.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0067/1.184, allocations: 9.804 MB / 0.6245 GB, free: 96.39 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01413/1.199, allocations: 15.58 MB / 0.6397 GB, free: 78.34 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000123/1.199, allocations: 48 kB / 0.6397 GB, free: 78.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03854/1.237, allocations: 19.56 MB / 0.6588 GB, free: 58.69 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.551e-05/1.237, allocations: 80 kB / 0.6589 GB, free: 58.61 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/1.238, allocations: 172 kB / 0.6591 GB, free: 58.44 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0213/1.259, allocations: 5.94 MB / 0.6649 GB, free: 52.49 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007603/1.266, allocations: 2.105 MB / 0.6669 GB, free: 50.38 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02792/1.294, allocations: 26.16 MB / 0.6925 GB, free: 23.94 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008403/1.303, allocations: 0.5577 MB / 0.693 GB, free: 23.38 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/1.304, allocations: 0.5117 MB / 0.6935 GB, free: 22.87 MB / 478.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.004471/1.309, allocations: 3.108 MB / 0.6965 GB, free: 19.75 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008902/1.309, allocations: 497.5 kB / 0.697 GB, free: 19.26 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02805/1.338, allocations: 12.93 MB / 0.7096 GB, free: 6.254 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.25e-05/1.338, allocations: 59.73 kB / 0.7097 GB, free: 6.199 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/1.338, allocations: 12 kB / 0.7097 GB, free: 6.188 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.45e-05/1.338, allocations: 15.8 kB / 0.7097 GB, free: 6.176 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3277/1.665, allocations: 24.51 MB / 0.7337 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-05/1.666, allocations: 5.906 kB / 0.7337 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003413/1.669, allocations: 0.5762 MB / 0.7342 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02152/1.69, allocations: 4.972 MB / 0.7391 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008843/1.691, allocations: 58.75 kB / 0.7391 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02828/1.72, allocations: 21.34 MB / 0.76 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/1.72, allocations: 11.78 kB / 0.76 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03389/1.754, allocations: 17.46 MB / 0.777 GB, free: 127.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004053/1.758, allocations: 1.247 MB / 0.7783 GB, free: 127 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008949/1.759, allocations: 51.72 kB / 0.7783 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002985/1.762, allocations: 259.5 kB / 0.7786 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007692/1.762, allocations: 204.2 kB / 0.7787 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002735/1.763, allocations: 84 kB / 0.7788 GB, free: 126.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005031/1.768, allocations: 3.423 MB / 0.7822 GB, free: 125 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.768, allocations: 0 / 0.7822 GB, free: 125 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008222/1.776, allocations: 1.765 MB / 0.7839 GB, free: 124.8 MB / 494.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.0006519/1.777, allocations: 206.2 kB / 0.7841 GB, free: 124.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01471/1.791, allocations: 10.97 MB / 0.7948 GB, free: 113.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/1.791, allocations: 1.203 kB / 0.7948 GB, free: 113.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004924/1.796, allocations: 4.103 MB / 0.7988 GB, free: 109.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004033/1.8, allocations: 0.6162 MB / 0.7994 GB, free: 109.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02691/1.827, allocations: 16.06 MB / 0.8151 GB, free: 93.19 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00489/1.832, allocations: 4.635 MB / 0.8196 GB, free: 88.55 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006859/1.839, allocations: 2.965 MB / 0.8225 GB, free: 85.66 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001543/1.841, allocations: 355.4 kB / 0.8229 GB, free: 85.31 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/1.841, allocations: 0 / 0.8229 GB, free: 85.31 MB / 494.1 MB Notification: Performance of Templates: time 0.1179/1.959, allocations: 77.36 MB / 0.8984 GB, free: 7.875 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches