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.00117/0.00117, allocations: 114.7 kB / 17.06 MB, free: 5.996 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.001147/0.001147, allocations: 196 kB / 18 MB, free: 5.074 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.407/1.407, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 47.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2763, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01567/0.292, allocations: 15.02 MB / 415.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.3026, allocations: 4.829 MB / 420.6 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002525/0.3051, allocations: 91.75 kB / 420.7 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00625/0.3114, allocations: 3.161 MB / 423.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006539/0.318, allocations: 2.625 MB / 426.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002373/0.3204, allocations: 0.9905 MB / 427.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.3306, allocations: 6.972 MB / 434.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00646/0.3371, allocations: 4.335 MB / 438.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004174/0.3413, allocations: 2.227 MB / 441 MB, free: 456 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004918/0.3463, allocations: 3.244 MB / 444.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001841/0.3482, allocations: 484 kB / 444.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004047/0.3522, allocations: 1.498 MB / 446.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003991/0.3562, allocations: 2.887 MB / 449.1 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005711/0.362, allocations: 3.246 MB / 452.3 MB, free: 5.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01392/0.3759, allocations: 10.44 MB / 462.8 MB, free: 10.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.376, allocations: 0 / 462.8 MB, free: 10.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.376, allocations: 0 / 462.8 MB, free: 10.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000464/0.3764, allocations: 4 kB / 462.8 MB, free: 10.58 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02147/0.3979, allocations: 7.279 MB / 470 MB, free: 3.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.398, allocations: 8.031 kB / 470.1 MB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01606/0.4141, allocations: 3.942 MB / 474 MB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/0.4257, allocations: 4.173 MB / 478.2 MB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002837/0.426, allocations: 316.4 kB / 478.5 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001461/0.4275, allocations: 427.6 kB / 478.9 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02551/0.453, allocations: 15.72 MB / 494.6 MB, free: 9.633 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001588/0.4532, allocations: 55.52 kB / 494.7 MB, free: 9.578 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006625/0.4539, allocations: 207.8 kB / 494.9 MB, free: 9.375 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004974/0.4589, allocations: 3.22 MB / 498.1 MB, free: 6.152 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02837/0.4873, allocations: 14.13 MB / 0.5002 GB, free: 7.996 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3343/0.8216, allocations: 57.49 MB / 0.5564 GB, free: 91.26 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/0.8338, allocations: 6.562 MB / 0.5628 GB, free: 89.8 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003842/0.8377, allocations: 3.686 MB / 0.5664 GB, free: 88.34 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01764/0.8553, allocations: 14.62 MB / 0.5806 GB, free: 80.73 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.8554, allocations: 64.83 kB / 0.5807 GB, free: 80.67 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 6.743e-06/0.8554, allocations: 0 / 0.5807 GB, free: 80.67 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1234/0.9788, allocations: 42.36 MB / 0.6221 GB, free: 39.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/0.9789, allocations: 221.9 kB / 0.6223 GB, free: 39.23 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006858/0.9858, allocations: 5.474 MB / 0.6276 GB, free: 33.77 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008453/0.9866, allocations: 69.7 kB / 0.6277 GB, free: 33.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001975/0.9886, allocations: 4.359 MB / 0.632 GB, free: 29.34 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001273/0.9899, allocations: 1.255 MB / 0.6332 GB, free: 28.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002245/0.9921, allocations: 1.859 MB / 0.635 GB, free: 26.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.9922, allocations: 301.1 kB / 0.6353 GB, free: 25.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005049/0.9972, allocations: 4.804 MB / 0.64 GB, free: 21.12 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006781/1.004, allocations: 9.808 MB / 0.6496 GB, free: 8.938 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01783/1.022, allocations: 15.56 MB / 0.6648 GB, free: 6.992 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002586/1.022, allocations: 51.94 kB / 0.6648 GB, free: 6.941 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04382/1.066, allocations: 19.57 MB / 0.6839 GB, free: 3.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/1.066, allocations: 80 kB / 0.684 GB, free: 3.242 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000208/1.066, allocations: 176 kB / 0.6842 GB, free: 3.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02153/1.088, allocations: 5.928 MB / 0.69 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007747/1.096, allocations: 2.117 MB / 0.692 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03334/1.129, allocations: 26.14 MB / 0.7175 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008709/1.138, allocations: 0.568 MB / 0.7181 GB, free: 24 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001677/1.14, allocations: 0.5039 MB / 0.7186 GB, free: 15.52 MB / 0.5294 GB 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.005478/1.145, allocations: 3.101 MB / 0.7216 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/1.146, allocations: 497.5 kB / 0.7221 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02987/1.176, allocations: 12.94 MB / 0.7347 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001173/1.176, allocations: 55.94 kB / 0.7348 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.5e-05/1.176, allocations: 9.688 kB / 0.7348 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-05/1.176, allocations: 15.94 kB / 0.7348 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3574/1.534, allocations: 24.5 MB / 0.7587 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.808e-05/1.534, allocations: 6.219 kB / 0.7587 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003073/1.537, allocations: 0.5784 MB / 0.7593 GB, free: 202 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01732/1.554, allocations: 4.972 MB / 0.7642 GB, free: 201.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000811/1.555, allocations: 58.55 kB / 0.7642 GB, free: 201.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02256/1.578, allocations: 21.34 MB / 0.7851 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.578, allocations: 7.938 kB / 0.7851 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02937/1.607, allocations: 17.46 MB / 0.8021 GB, free: 171.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001998/1.609, allocations: 0.5319 MB / 0.8026 GB, free: 171 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001261/1.61, allocations: 52 kB / 0.8027 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002639/1.613, allocations: 263.4 kB / 0.8029 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000738/1.614, allocations: 196.2 kB / 0.8031 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002676/1.614, allocations: 83.98 kB / 0.8032 GB, free: 170.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004535/1.619, allocations: 3.402 MB / 0.8065 GB, free: 167 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.12e-07/1.619, allocations: 0 / 0.8065 GB, free: 167 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008697/1.627, allocations: 1.763 MB / 0.8082 GB, free: 165.3 MB / 0.545 GB 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.0008627/1.628, allocations: 207.4 kB / 0.8084 GB, free: 165.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01434/1.643, allocations: 10.97 MB / 0.8192 GB, free: 154.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.643, allocations: 0 / 0.8192 GB, free: 154.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005072/1.648, allocations: 4.104 MB / 0.8232 GB, free: 150.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003867/1.652, allocations: 0.6246 MB / 0.8238 GB, free: 149.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02399/1.676, allocations: 16.01 MB / 0.8394 GB, free: 133.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005809/1.682, allocations: 4.617 MB / 0.8439 GB, free: 128.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006637/1.688, allocations: 2.964 MB / 0.8468 GB, free: 125.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001773/1.69, allocations: 351.4 kB / 0.8471 GB, free: 125.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.583e-06/1.69, allocations: 0 / 0.8471 GB, free: 125.6 MB / 0.545 GB Notification: Performance of Templates: time 0.1054/1.795, allocations: 76.87 MB / 0.9222 GB, free: 48.82 MB / 0.545 GB 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