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.001231/0.001231, allocations: 93.97 kB / 16.31 MB, free: 5.578 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.001537/0.001537, allocations: 177.8 kB / 17.2 MB, free: 5.496 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.379/1.379, allocations: 223.2 MB / 241.2 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002526, allocations: 8 kB / 300.8 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09734, allocations: 50.42 MB / 351.2 MB, free: 3.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2131/0.3104, allocations: 48.39 MB / 399.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02807/0.3386, allocations: 10.63 MB / 410.3 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008718/0.3473, allocations: 229.2 kB / 410.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006199/0.3535, allocations: 2.509 MB / 413 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01795/0.3715, allocations: 7.593 MB / 420.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002837/0.3744, allocations: 0.866 MB / 421.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07707/0.4514, allocations: 62.84 MB / 484.3 MB, free: 15.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007938/0.4594, allocations: 5.029 MB / 489.3 MB, free: 10.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003249/0.4627, allocations: 1.876 MB / 491.2 MB, free: 8.324 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003801/0.4665, allocations: 3.12 MB / 494.3 MB, free: 5.195 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006026/0.4671, allocations: 236 kB / 494.5 MB, free: 4.965 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002244/0.4694, allocations: 1.127 MB / 495.7 MB, free: 3.836 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002219/0.4716, allocations: 2.571 MB / 498.2 MB, free: 1.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001318/0.4729, allocations: 1.189 MB / 499.4 MB, free: 60 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007199/0.4801, allocations: 7.957 MB / 0.4955 GB, free: 8.082 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4802, allocations: 0 / 0.4955 GB, free: 8.082 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4802, allocations: 0 / 0.4955 GB, free: 8.082 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001841/0.4804, allocations: 4 kB / 0.4955 GB, free: 8.078 MB / 414.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.01077/0.4911, allocations: 6.121 MB / 0.5015 GB, free: 1.875 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.4912, allocations: 12.03 kB / 0.5015 GB, free: 1.863 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01469/0.5059, allocations: 4.035 MB / 0.5054 GB, free: 13.81 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008944/0.5149, allocations: 4.029 MB / 0.5094 GB, free: 9.723 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.5151, allocations: 316 kB / 0.5097 GB, free: 9.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009615/0.5161, allocations: 439.5 kB / 0.5101 GB, free: 8.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02477/0.5409, allocations: 15.71 MB / 0.5254 GB, free: 8.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/0.541, allocations: 59.45 kB / 0.5255 GB, free: 8.281 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005496/0.5416, allocations: 203.8 kB / 0.5257 GB, free: 8.082 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004429/0.546, allocations: 3.216 MB / 0.5288 GB, free: 4.859 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2292/0.7753, allocations: 14.07 MB / 0.5426 GB, free: 146.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06068/0.836, allocations: 57.77 MB / 0.599 GB, free: 100.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01209/0.8481, allocations: 6.541 MB / 0.6054 GB, free: 93.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004059/0.8522, allocations: 3.676 MB / 0.609 GB, free: 89.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01743/0.8697, allocations: 14.66 MB / 0.6233 GB, free: 74.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.8698, allocations: 68.5 kB / 0.6233 GB, free: 74.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 6.683e-06/0.8698, allocations: 0 / 0.6233 GB, free: 74.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1228/0.9926, allocations: 42.59 MB / 0.6649 GB, free: 31.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.815e-05/0.9927, allocations: 213.9 kB / 0.6651 GB, free: 31.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006781/0.9995, allocations: 5.439 MB / 0.6705 GB, free: 26.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008765/1, allocations: 75.27 kB / 0.6705 GB, free: 26.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00228/1.003, allocations: 4.355 MB / 0.6748 GB, free: 21.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001758/1.005, allocations: 1.249 MB / 0.676 GB, free: 20.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005059/1.005, allocations: 181.1 kB / 0.6762 GB, free: 20.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003844/1.005, allocations: 0.6936 MB / 0.6768 GB, free: 19.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005971/1.011, allocations: 4.781 MB / 0.6815 GB, free: 14.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007709/1.019, allocations: 9.763 MB / 0.691 GB, free: 2.684 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00982/1.029, allocations: 6.67 MB / 0.6976 GB, free: 12 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001469/1.029, allocations: 48 kB / 0.6976 GB, free: 11.95 MB / 462.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.2752/1.304, allocations: 19.5 MB / 0.7167 GB, free: 144.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001572/1.305, allocations: 79.97 kB / 0.7167 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002853/1.305, allocations: 173.4 kB / 0.7169 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02106/1.326, allocations: 5.994 MB / 0.7227 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009287/1.335, allocations: 2.11 MB / 0.7248 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02992/1.365, allocations: 24.76 MB / 0.749 GB, free: 132.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007598/1.373, allocations: 0.5602 MB / 0.7495 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001753/1.375, allocations: 0.513 MB / 0.75 GB, free: 131.9 MB / 462.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005616/1.38, allocations: 3.1 MB / 0.7531 GB, free: 130.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/1.381, allocations: 0.489 MB / 0.7535 GB, free: 130.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02683/1.408, allocations: 12.94 MB / 0.7662 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-05/1.408, allocations: 48 kB / 0.7662 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.835e-05/1.408, allocations: 15.98 kB / 0.7662 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.695e-05/1.408, allocations: 11.95 kB / 0.7662 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04556/1.454, allocations: 24.63 MB / 0.7903 GB, free: 92.37 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.573e-05/1.454, allocations: 5.969 kB / 0.7903 GB, free: 92.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002979/1.457, allocations: 0.5772 MB / 0.7909 GB, free: 91.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01696/1.474, allocations: 4.997 MB / 0.7957 GB, free: 86.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007977/1.475, allocations: 59.38 kB / 0.7958 GB, free: 86.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02202/1.497, allocations: 20 MB / 0.8153 GB, free: 66.58 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/1.497, allocations: 7.438 kB / 0.8153 GB, free: 66.58 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03206/1.529, allocations: 17.44 MB / 0.8324 GB, free: 49.26 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001672/1.531, allocations: 0.5473 MB / 0.8329 GB, free: 48.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001919/1.533, allocations: 53.25 kB / 0.833 GB, free: 48.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00389/1.537, allocations: 261 kB / 0.8332 GB, free: 48.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001054/1.538, allocations: 201.6 kB / 0.8334 GB, free: 48.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006346/1.538, allocations: 84.7 kB / 0.8335 GB, free: 48.13 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006168/1.545, allocations: 3.369 MB / 0.8368 GB, free: 44.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.545, allocations: 0 / 0.8368 GB, free: 44.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009733/1.554, allocations: 1.762 MB / 0.8385 GB, free: 43.03 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001117/1.555, allocations: 207.8 kB / 0.8387 GB, free: 42.82 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01652/1.572, allocations: 10.88 MB / 0.8493 GB, free: 31.95 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/1.572, allocations: 4 kB / 0.8493 GB, free: 31.95 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005854/1.578, allocations: 4.092 MB / 0.8533 GB, free: 27.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005487/1.583, allocations: 0.5978 MB / 0.8539 GB, free: 27.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03067/1.614, allocations: 18.59 MB / 0.872 GB, free: 8.559 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2003/1.814, allocations: 4.617 MB / 0.8766 GB, free: 145.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008769/1.823, allocations: 2.969 MB / 0.8795 GB, free: 145.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001526/1.825, allocations: 353.3 kB / 0.8798 GB, free: 145.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/1.825, allocations: 0 / 0.8798 GB, free: 145.9 MB / 462.1 MB Notification: Performance of Templates: time 0.1143/1.939, allocations: 75.21 MB / 0.9532 GB, free: 90.88 MB / 462.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