Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001462/0.001462, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001785/0.001785, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.9 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 64.92 kB / 306.9 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.09229, allocations: 50.54 MB / 357.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2121/0.3044, allocations: 53.07 MB / 410.5 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02879/0.3332, allocations: 11.1 MB / 421.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01265/0.3459, allocations: 233.9 kB / 421.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006607/0.3526, allocations: 3.108 MB / 424.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007122/0.3598, allocations: 2.375 MB / 427.3 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002592/0.3624, allocations: 0.9128 MB / 428.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01208/0.3746, allocations: 9.963 MB / 438.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006762/0.3814, allocations: 4.243 MB / 442.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004693/0.3861, allocations: 1.962 MB / 444.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005467/0.3916, allocations: 3.419 MB / 447.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001904/0.3936, allocations: 328 kB / 448.1 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003966/0.3976, allocations: 1.412 MB / 449.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004059/0.4017, allocations: 2.719 MB / 452.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005738/0.4074, allocations: 3.09 MB / 455.4 MB, free: 9.547 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009836/0.4173, allocations: 8.073 MB / 463.4 MB, free: 1.457 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.4173, allocations: 0 / 463.4 MB, free: 1.457 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4174, allocations: 4 kB / 463.4 MB, free: 1.453 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003708/0.4177, allocations: 0 / 463.4 MB, free: 1.453 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.01897/0.4367, allocations: 7.251 MB / 470.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.4368, allocations: 8.031 kB / 470.7 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01648/0.4533, allocations: 3.939 MB / 474.6 MB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00919/0.4625, allocations: 4.044 MB / 478.7 MB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003097/0.4629, allocations: 312.6 kB / 479 MB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002022/0.4649, allocations: 435.5 kB / 479.4 MB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02934/0.4943, allocations: 15.72 MB / 495.1 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002968/0.4946, allocations: 59.47 kB / 495.2 MB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001651/0.4963, allocations: 199.8 kB / 495.4 MB, free: 428 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00508/0.5014, allocations: 3.22 MB / 498.6 MB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02774/0.5291, allocations: 14.13 MB / 0.5007 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2717/0.8009, allocations: 57.77 MB / 0.5571 GB, free: 108.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01359/0.8145, allocations: 6.564 MB / 0.5635 GB, free: 105.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004778/0.8193, allocations: 3.684 MB / 0.5671 GB, free: 104.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02102/0.8404, allocations: 14.64 MB / 0.5814 GB, free: 96.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.8405, allocations: 61.59 kB / 0.5815 GB, free: 96.86 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 6.603e-06/0.8405, allocations: 0 / 0.5815 GB, free: 96.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1331/0.9736, allocations: 42.34 MB / 0.6229 GB, free: 61.81 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.9738, allocations: 210 kB / 0.6231 GB, free: 61.56 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006379/0.9801, allocations: 5.466 MB / 0.6284 GB, free: 56.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007986/0.981, allocations: 73.7 kB / 0.6285 GB, free: 56.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002069/0.9831, allocations: 4.355 MB / 0.6327 GB, free: 51.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001455/0.9845, allocations: 1.248 MB / 0.6339 GB, free: 50.44 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002832/0.9874, allocations: 1.859 MB / 0.6357 GB, free: 48.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.172e-05/0.9874, allocations: 305.1 kB / 0.636 GB, free: 48.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006084/0.9935, allocations: 4.808 MB / 0.6407 GB, free: 43.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008482/1.002, allocations: 9.809 MB / 0.6503 GB, free: 31.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/1.017, allocations: 15.57 MB / 0.6655 GB, free: 13.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/1.017, allocations: 48 kB / 0.6656 GB, free: 13.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04119/1.058, allocations: 19.56 MB / 0.6847 GB, free: 9.566 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/1.058, allocations: 80 kB / 0.6847 GB, free: 9.488 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001762/1.058, allocations: 176 kB / 0.6849 GB, free: 9.316 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02242/1.081, allocations: 5.944 MB / 0.6907 GB, free: 3.363 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007542/1.088, allocations: 2.106 MB / 0.6928 GB, free: 1.254 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2142/1.303, allocations: 24.77 MB / 0.717 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007471/1.31, allocations: 0.5544 MB / 0.7175 GB, free: 153.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001459/1.312, allocations: 0.5151 MB / 0.718 GB, free: 153.8 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.005708/1.317, allocations: 3.095 MB / 0.721 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/1.318, allocations: 498.5 kB / 0.7215 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02969/1.348, allocations: 12.93 MB / 0.7341 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.549e-05/1.348, allocations: 55.38 kB / 0.7342 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/1.348, allocations: 10.5 kB / 0.7342 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-05/1.348, allocations: 18.28 kB / 0.7342 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04399/1.392, allocations: 24.57 MB / 0.7582 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.131e-05/1.393, allocations: 11.27 kB / 0.7582 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002969/1.395, allocations: 0.5773 MB / 0.7588 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01792/1.413, allocations: 4.964 MB / 0.7636 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000788/1.414, allocations: 60 kB / 0.7637 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02108/1.435, allocations: 19.99 MB / 0.7832 GB, free: 111.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.435, allocations: 11.92 kB / 0.7832 GB, free: 111.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03063/1.466, allocations: 17.45 MB / 0.8003 GB, free: 94.07 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/1.468, allocations: 0.532 MB / 0.8008 GB, free: 93.54 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001023/1.469, allocations: 52 kB / 0.8008 GB, free: 93.49 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002666/1.471, allocations: 263.6 kB / 0.8011 GB, free: 93.23 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000738/1.472, allocations: 196.9 kB / 0.8013 GB, free: 93.05 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002733/1.472, allocations: 80 kB / 0.8013 GB, free: 92.97 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004128/1.476, allocations: 3.41 MB / 0.8047 GB, free: 89.58 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.476, allocations: 1.859 kB / 0.8047 GB, free: 89.58 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007047/1.483, allocations: 1.732 MB / 0.8064 GB, free: 87.86 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.0005844/1.484, allocations: 210.8 kB / 0.8066 GB, free: 87.65 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01367/1.498, allocations: 10.92 MB / 0.8172 GB, free: 76.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/1.498, allocations: 0 / 0.8172 GB, free: 76.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004923/1.503, allocations: 4.108 MB / 0.8212 GB, free: 72.66 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003775/1.507, allocations: 0.5871 MB / 0.8218 GB, free: 72.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02409/1.531, allocations: 19.76 MB / 0.8411 GB, free: 52.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003886/1.535, allocations: 4.602 MB / 0.8456 GB, free: 47.67 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002075/1.537, allocations: 419.4 kB / 0.846 GB, free: 47.26 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/1.537, allocations: 0 / 0.846 GB, free: 47.26 MB / 478.1 MB Notification: Performance of Templates: time 0.34/1.877, allocations: 149.4 MB / 0.9919 GB, free: 61.81 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches