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.001194/0.001194, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 63.92 kB / 307 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1067, allocations: 50.54 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.1825/0.2892, allocations: 14.97 MB / 372.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009671/0.2989, allocations: 4.821 MB / 377.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002932/0.3019, allocations: 96.72 kB / 377.4 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006003/0.3079, allocations: 3.162 MB / 380.6 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007416/0.3154, allocations: 2.511 MB / 383.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002414/0.3178, allocations: 0.9921 MB / 384.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008946/0.3268, allocations: 7.033 MB / 391.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004754/0.3315, allocations: 4.341 MB / 395.5 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003555/0.3351, allocations: 2.211 MB / 397.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004056/0.3392, allocations: 3.225 MB / 400.9 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001127/0.3403, allocations: 484 kB / 401.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003131/0.3435, allocations: 1.484 MB / 402.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003025/0.3465, allocations: 2.821 MB / 405.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003792/0.3503, allocations: 3.234 MB / 408.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.3611, allocations: 9.976 MB / 418.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3611, allocations: 4 kB / 418.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3612, allocations: 0 / 418.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002373/0.3614, allocations: 0 / 418.9 MB, free: 13.16 MB / 334.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.01486/0.3763, allocations: 7.247 MB / 426.1 MB, free: 5.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3763, allocations: 8.031 kB / 426.1 MB, free: 5.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01606/0.3924, allocations: 3.94 MB / 430.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009382/0.4018, allocations: 4.047 MB / 434.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/0.4021, allocations: 316.2 kB / 434.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00117/0.4033, allocations: 434.7 kB / 434.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02809/0.4314, allocations: 15.71 MB / 450.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001672/0.4316, allocations: 63.45 kB / 450.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006239/0.4322, allocations: 207.3 kB / 450.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00512/0.4374, allocations: 3.205 MB / 454 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02819/0.4656, allocations: 14.13 MB / 468.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08565/0.5513, allocations: 57.76 MB / 0.5136 GB, free: 192 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01561/0.5669, allocations: 6.566 MB / 0.52 GB, free: 9.359 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005514/0.5725, allocations: 3.685 MB / 0.5236 GB, free: 5.664 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2226/0.7951, allocations: 14.64 MB / 0.5379 GB, free: 136.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/0.7952, allocations: 61.64 kB / 0.538 GB, free: 136.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 5.32e-06/0.7952, allocations: 0 / 0.538 GB, free: 136.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1399/0.9351, allocations: 42.34 MB / 0.5793 GB, free: 113.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.929e-05/0.9352, allocations: 213.9 kB / 0.5795 GB, free: 113 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006067/0.9413, allocations: 5.47 MB / 0.5849 GB, free: 107.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007761/0.9421, allocations: 69.7 kB / 0.5849 GB, free: 107.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001794/0.9439, allocations: 4.359 MB / 0.5892 GB, free: 103.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001251/0.9451, allocations: 1.254 MB / 0.5904 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002125/0.9473, allocations: 1.859 MB / 0.5922 GB, free: 100 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.432e-05/0.9473, allocations: 301.1 kB / 0.5925 GB, free: 99.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005206/0.9525, allocations: 4.808 MB / 0.5972 GB, free: 94.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007032/0.9596, allocations: 9.802 MB / 0.6068 GB, free: 82.69 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/0.9739, allocations: 15.58 MB / 0.622 GB, free: 64.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001408/0.9741, allocations: 48 kB / 0.622 GB, free: 64.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04129/1.015, allocations: 19.57 MB / 0.6411 GB, free: 45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.054e-05/1.015, allocations: 83.94 kB / 0.6412 GB, free: 44.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001265/1.016, allocations: 176 kB / 0.6414 GB, free: 44.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02174/1.037, allocations: 5.941 MB / 0.6472 GB, free: 38.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006614/1.044, allocations: 2.113 MB / 0.6493 GB, free: 36.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02748/1.071, allocations: 26.14 MB / 0.6748 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00674/1.078, allocations: 0.55 MB / 0.6753 GB, free: 9.699 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008995/1.079, allocations: 0.5117 MB / 0.6758 GB, free: 9.188 MB / 446.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.003834/1.083, allocations: 3.106 MB / 0.6789 GB, free: 6.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008426/1.084, allocations: 0.4897 MB / 0.6793 GB, free: 5.574 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03174/1.116, allocations: 12.93 MB / 0.692 GB, free: 8.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.545e-05/1.116, allocations: 55.98 kB / 0.692 GB, free: 8.516 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-05/1.116, allocations: 15.5 kB / 0.692 GB, free: 8.504 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.179e-05/1.116, allocations: 11.95 kB / 0.692 GB, free: 8.492 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2351/1.351, allocations: 24.56 MB / 0.716 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-05/1.351, allocations: 3.938 kB / 0.716 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003008/1.354, allocations: 0.5835 MB / 0.7166 GB, free: 131.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0192/1.373, allocations: 4.972 MB / 0.7215 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007028/1.374, allocations: 59.19 kB / 0.7215 GB, free: 130.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02318/1.397, allocations: 21.36 MB / 0.7424 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/1.397, allocations: 7.906 kB / 0.7424 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03307/1.43, allocations: 17.46 MB / 0.7594 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/1.432, allocations: 0.5284 MB / 0.7599 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001358/1.433, allocations: 55.91 kB / 0.76 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003382/1.437, allocations: 259.6 kB / 0.7602 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000897/1.438, allocations: 192.7 kB / 0.7604 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002609/1.438, allocations: 87.81 kB / 0.7605 GB, free: 101.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004946/1.443, allocations: 3.394 MB / 0.7638 GB, free: 97.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.164e-06/1.443, allocations: 0 / 0.7638 GB, free: 97.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008256/1.451, allocations: 1.742 MB / 0.7655 GB, free: 96.07 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 (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.0009481/1.452, allocations: 218.7 kB / 0.7657 GB, free: 95.87 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02209/1.474, allocations: 15.73 MB / 0.7811 GB, free: 80.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/1.474, allocations: 0 / 0.7811 GB, free: 80.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005613/1.48, allocations: 4.096 MB / 0.7851 GB, free: 76.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004716/1.485, allocations: 0.6225 MB / 0.7857 GB, free: 75.56 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02513/1.51, allocations: 16.17 MB / 0.8015 GB, free: 59.41 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005912/1.516, allocations: 4.619 MB / 0.806 GB, free: 54.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007355/1.523, allocations: 2.963 MB / 0.8089 GB, free: 51.78 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/1.525, allocations: 351.4 kB / 0.8092 GB, free: 51.44 MB / 462.1 MB Notification: Performance of SimCode: time 2.434e-06/1.525, allocations: 0 / 0.8092 GB, free: 51.44 MB / 462.1 MB Notification: Performance of Templates: time 0.3196/1.844, allocations: 80.93 MB / 0.8883 GB, free: 141.6 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/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