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.001266/0.001274, allocations: 98.2 kB / 16.3 MB, free: 5.988 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.001436/0.001436, allocations: 178.8 kB / 17.19 MB, free: 5.906 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.276/1.276, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002434/0.0002434, allocations: 6.844 kB / 300.7 MB, free: 6.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.09787, allocations: 50.42 MB / 351.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03978/0.1377, allocations: 45.71 MB / 396.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02282/0.1606, allocations: 11.08 MB / 407.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00826/0.1689, allocations: 227.4 kB / 408.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007359/0.1762, allocations: 2.282 MB / 410.4 MB, free: 400 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01843/0.1947, allocations: 6.682 MB / 417.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003104/0.1978, allocations: 0.8425 MB / 418 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2556/0.4534, allocations: 49.1 MB / 467.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007187/0.4606, allocations: 4.991 MB / 472 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002596/0.4633, allocations: 1.56 MB / 473.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002704/0.466, allocations: 2.263 MB / 475.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007222/0.4667, allocations: 236 kB / 476.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.4688, allocations: 1.101 MB / 477.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002021/0.4708, allocations: 2.394 MB / 479.6 MB, free: 9.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001126/0.472, allocations: 1.2 MB / 480.8 MB, free: 8.672 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007228/0.4792, allocations: 8.068 MB / 488.9 MB, free: 1.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.4792, allocations: 0 / 488.9 MB, free: 1.656 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4792, allocations: 4 kB / 488.9 MB, free: 1.652 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002882/0.4795, allocations: 0 / 488.9 MB, free: 1.652 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.01495/0.4945, allocations: 6.437 MB / 495.3 MB, free: 11.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.4946, allocations: 8.031 kB / 495.3 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04794/0.5425, allocations: 9.767 MB / 0.4932 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/0.553, allocations: 4.298 MB / 0.4974 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002582/0.5533, allocations: 320.9 kB / 0.4977 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001789/0.5551, allocations: 426.7 kB / 0.4981 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02726/0.5824, allocations: 15.75 MB / 0.5135 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001785/0.5826, allocations: 62.55 kB / 0.5136 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005939/0.5832, allocations: 202.8 kB / 0.5138 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004597/0.5878, allocations: 3.22 MB / 0.5169 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0271/0.6149, allocations: 14.04 MB / 0.5306 GB, free: 6.414 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.27/0.885, allocations: 57.51 MB / 0.5868 GB, free: 144.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01358/0.8986, allocations: 6.578 MB / 0.5932 GB, free: 143 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02016/0.9188, allocations: 14.43 MB / 0.6073 GB, free: 139.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.9188, allocations: 59.06 kB / 0.6074 GB, free: 139.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 5.39e-06/0.9188, allocations: 0 / 0.6074 GB, free: 139.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1359/1.055, allocations: 42.72 MB / 0.6491 GB, free: 113.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.616e-05/1.055, allocations: 210 kB / 0.6493 GB, free: 113.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006887/1.062, allocations: 5.707 MB / 0.6549 GB, free: 107.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001102/1.063, allocations: 73.7 kB / 0.6549 GB, free: 107.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002154/1.065, allocations: 4.426 MB / 0.6593 GB, free: 103.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001386/1.066, allocations: 1.244 MB / 0.6605 GB, free: 101.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004251/1.067, allocations: 168.8 kB / 0.6606 GB, free: 101.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003112/1.067, allocations: 0.6819 MB / 0.6613 GB, free: 101 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005196/1.072, allocations: 4.585 MB / 0.6658 GB, free: 96.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00728/1.08, allocations: 9.525 MB / 0.6751 GB, free: 84.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007941/1.088, allocations: 6.463 MB / 0.6814 GB, free: 78.14 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.345e-05/1.088, allocations: 48 kB / 0.6814 GB, free: 78.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03948/1.127, allocations: 18.91 MB / 0.6999 GB, free: 59.21 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/1.127, allocations: 80 kB / 0.7 GB, free: 59.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001916/1.128, allocations: 172 kB / 0.7001 GB, free: 58.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02113/1.149, allocations: 5.827 MB / 0.7058 GB, free: 53.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006862/1.156, allocations: 2.055 MB / 0.7078 GB, free: 51.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02751/1.183, allocations: 24.94 MB / 0.7322 GB, free: 25.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00715/1.19, allocations: 0.5461 MB / 0.7327 GB, free: 25.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001642/1.192, allocations: 0.5054 MB / 0.7332 GB, free: 24.81 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 (1057): * Single equations (assignments): 1049 * 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.005809/1.198, allocations: 3.102 MB / 0.7363 GB, free: 21.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00144/1.199, allocations: 0.5013 MB / 0.7367 GB, free: 21.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2176/1.417, allocations: 12.59 MB / 0.749 GB, free: 141.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001028/1.417, allocations: 60.39 kB / 0.7491 GB, free: 141.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.888e-05/1.417, allocations: 8.656 kB / 0.7491 GB, free: 141.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-05/1.417, allocations: 16.75 kB / 0.7491 GB, free: 141.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0521/1.469, allocations: 24.32 MB / 0.7729 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.844e-05/1.469, allocations: 5.625 kB / 0.7729 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002976/1.472, allocations: 0.5743 MB / 0.7734 GB, free: 137.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01857/1.491, allocations: 4.841 MB / 0.7782 GB, free: 135 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005982/1.492, allocations: 53.31 kB / 0.7782 GB, free: 135 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02197/1.514, allocations: 20.21 MB / 0.7979 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/1.514, allocations: 15.62 kB / 0.798 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03164/1.545, allocations: 17.7 MB / 0.8152 GB, free: 104.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/1.547, allocations: 0.5537 MB / 0.8158 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001191/1.548, allocations: 52 kB / 0.8158 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003023/1.551, allocations: 254.2 kB / 0.8161 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005916/1.552, allocations: 193.3 kB / 0.8163 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002513/1.552, allocations: 89.91 kB / 0.8163 GB, free: 103.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004401/1.556, allocations: 3.588 MB / 0.8198 GB, free: 99.64 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.557, allocations: 0 / 0.8198 GB, free: 99.64 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006564/1.563, allocations: 1.736 MB / 0.8215 GB, free: 97.92 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 (251): * Single equations (assignments): 243 * 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.0005879/1.564, allocations: 223.4 kB / 0.8218 GB, free: 97.71 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01192/1.576, allocations: 10.55 MB / 0.8321 GB, free: 87.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/1.576, allocations: 0 / 0.8321 GB, free: 87.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00434/1.58, allocations: 4.003 MB / 0.836 GB, free: 83.24 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002636/1.583, allocations: 0.5711 MB / 0.8365 GB, free: 82.68 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0209/1.604, allocations: 18.33 MB / 0.8544 GB, free: 64.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004329/1.608, allocations: 4.744 MB / 0.8591 GB, free: 59.61 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006336/1.614, allocations: 2.989 MB / 0.862 GB, free: 56.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/1.616, allocations: 355.4 kB / 0.8623 GB, free: 56.27 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/1.616, allocations: 0 / 0.8623 GB, free: 56.27 MB / 462.1 MB Notification: Performance of Templates: time 0.2769/1.892, allocations: 75.27 MB / 0.9358 GB, free: 133.3 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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches