Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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.0.0_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.0009483/0.0009484, allocations: 91.44 kB / 16.65 MB, free: 6.602 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.001303/0.001303, allocations: 174.9 kB / 17.56 MB, free: 6.203 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.371/1.371, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.0002911, allocations: 11.94 kB / 301.4 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1075, allocations: 50.42 MB / 351.8 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2622/0.3697, allocations: 52.02 MB / 403.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03184/0.4016, allocations: 11.15 MB / 415 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01268/0.4143, allocations: 227.8 kB / 415.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00237/0.4167, allocations: 0.6148 MB / 415.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007051/0.4238, allocations: 2.408 MB / 418.3 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002434/0.4262, allocations: 0.9104 MB / 419.2 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01233/0.4386, allocations: 9.9 MB / 429.1 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008477/0.4471, allocations: 5.724 MB / 434.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003449/0.4506, allocations: 1.747 MB / 436.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004571/0.4552, allocations: 3.123 MB / 439.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008996/0.4561, allocations: 236 kB / 439.9 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002775/0.4589, allocations: 1.346 MB / 441.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002798/0.4617, allocations: 2.625 MB / 443.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003425/0.4652, allocations: 2.978 MB / 446.8 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0106/0.4758, allocations: 9.681 MB / 456.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4758, allocations: 0 / 456.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4758, allocations: 0 / 456.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003028/0.4761, allocations: 0 / 456.5 MB, free: 11.3 MB / 366.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.01328/0.4894, allocations: 6.047 MB / 462.6 MB, free: 5.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.4895, allocations: 8.031 kB / 462.6 MB, free: 5.168 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01684/0.5063, allocations: 4.036 MB / 466.6 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009728/0.5161, allocations: 4.102 MB / 470.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003056/0.5165, allocations: 320.6 kB / 471 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001853/0.5183, allocations: 427.6 kB / 471.4 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02784/0.5462, allocations: 15.74 MB / 487.2 MB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001651/0.5464, allocations: 63.36 kB / 487.2 MB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007284/0.5471, allocations: 203.8 kB / 487.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005347/0.5525, allocations: 3.216 MB / 490.7 MB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02834/0.5808, allocations: 14.14 MB / 0.493 GB, free: 9.902 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2911/0.872, allocations: 57.79 MB / 0.5494 GB, free: 112 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0141/0.8862, allocations: 6.566 MB / 0.5558 GB, free: 110.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004745/0.8909, allocations: 3.682 MB / 0.5594 GB, free: 109.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0203/0.9113, allocations: 14.66 MB / 0.5737 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.9114, allocations: 62.09 kB / 0.5738 GB, free: 102.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.063e-06/0.9114, allocations: 0 / 0.5738 GB, free: 102.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1434/1.055, allocations: 42.61 MB / 0.6154 GB, free: 68.85 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.03e-05/1.055, allocations: 210 kB / 0.6156 GB, free: 68.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007669/1.063, allocations: 5.482 MB / 0.621 GB, free: 63.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008788/1.064, allocations: 70.72 kB / 0.621 GB, free: 63.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002005/1.066, allocations: 4.352 MB / 0.6253 GB, free: 58.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002004/1.068, allocations: 1.262 MB / 0.6265 GB, free: 57.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/1.069, allocations: 0.7722 MB / 0.6273 GB, free: 56.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.447e-05/1.069, allocations: 305.1 kB / 0.6276 GB, free: 56.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005828/1.075, allocations: 4.804 MB / 0.6322 GB, free: 51.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008656/1.083, allocations: 9.811 MB / 0.6418 GB, free: 39.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01492/1.098, allocations: 15.57 MB / 0.657 GB, free: 21.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/1.099, allocations: 48 kB / 0.6571 GB, free: 21.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04192/1.14, allocations: 19.58 MB / 0.6762 GB, free: 1.766 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/1.141, allocations: 86.33 kB / 0.6763 GB, free: 1.684 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001905/1.141, allocations: 176 kB / 0.6765 GB, free: 1.512 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02387/1.165, allocations: 5.963 MB / 0.6823 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007678/1.172, allocations: 2.109 MB / 0.6843 GB, free: 9.422 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03347/1.206, allocations: 24.79 MB / 0.7085 GB, free: 368 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2323/1.438, allocations: 0.5559 MB / 0.7091 GB, free: 161 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002337/1.441, allocations: 0.5117 MB / 0.7096 GB, free: 161 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.007918/1.449, allocations: 3.103 MB / 0.7126 GB, free: 160.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001247/1.45, allocations: 496.8 kB / 0.7131 GB, free: 160.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03348/1.483, allocations: 12.95 MB / 0.7257 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/1.484, allocations: 54.91 kB / 0.7258 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.921e-05/1.484, allocations: 9 kB / 0.7258 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.294e-05/1.484, allocations: 17.59 kB / 0.7258 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05037/1.534, allocations: 24.64 MB / 0.7499 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.778e-05/1.534, allocations: 3.781 kB / 0.7499 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003126/1.537, allocations: 0.5812 MB / 0.7505 GB, free: 146.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01929/1.557, allocations: 5.003 MB / 0.7553 GB, free: 143.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008704/1.557, allocations: 56 kB / 0.7554 GB, free: 143.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02196/1.579, allocations: 19.99 MB / 0.7749 GB, free: 123.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/1.579, allocations: 8 kB / 0.7749 GB, free: 123.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0333/1.613, allocations: 17.48 MB / 0.792 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001951/1.615, allocations: 0.5412 MB / 0.7925 GB, free: 105.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001339/1.616, allocations: 56.92 kB / 0.7926 GB, free: 105.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003124/1.619, allocations: 269.5 kB / 0.7928 GB, free: 105.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007913/1.62, allocations: 187.4 kB / 0.793 GB, free: 105.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000255/1.62, allocations: 87.98 kB / 0.7931 GB, free: 105.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005088/1.625, allocations: 3.402 MB / 0.7964 GB, free: 101.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.625, allocations: 0 / 0.7964 GB, free: 101.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009713/1.635, allocations: 1.765 MB / 0.7981 GB, free: 99.97 MB / 478.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.001072/1.636, allocations: 213.6 kB / 0.7984 GB, free: 99.77 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01667/1.653, allocations: 10.92 MB / 0.809 GB, free: 88.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/1.653, allocations: 0 / 0.809 GB, free: 88.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005687/1.659, allocations: 4.103 MB / 0.813 GB, free: 84.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008974/1.668, allocations: 0.5881 MB / 0.8136 GB, free: 84.22 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03133/1.699, allocations: 19.26 MB / 0.8324 GB, free: 64.94 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005879/1.705, allocations: 4.63 MB / 0.8369 GB, free: 60.27 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007139/1.712, allocations: 2.963 MB / 0.8398 GB, free: 57.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001486/1.714, allocations: 351.4 kB / 0.8402 GB, free: 56.96 MB / 478.1 MB Notification: Performance of SimCode: time 1.763e-06/1.714, allocations: 0 / 0.8402 GB, free: 56.96 MB / 478.1 MB Notification: Performance of Templates: time 0.3163/2.03, allocations: 76.7 MB / 0.9151 GB, free: 141.3 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches