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.001612/0.001612, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001994/0.001994, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.64 kB / 307.6 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09341, allocations: 50.53 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.1639/0.2573, allocations: 14.97 MB / 373.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009138/0.2665, allocations: 4.824 MB / 377.9 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002307/0.2688, allocations: 93.12 kB / 378 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005525/0.2744, allocations: 3.171 MB / 381.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006555/0.281, allocations: 2.502 MB / 383.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002358/0.2834, allocations: 0.9921 MB / 384.7 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009359/0.2928, allocations: 7.031 MB / 391.7 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005029/0.2978, allocations: 4.34 MB / 396.1 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00377/0.3016, allocations: 2.211 MB / 398.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004307/0.3059, allocations: 3.225 MB / 401.5 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001194/0.3072, allocations: 484 kB / 402 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003054/0.3102, allocations: 1.488 MB / 403.5 MB, free: 13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002646/0.3129, allocations: 2.827 MB / 406.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003613/0.3165, allocations: 3.222 MB / 409.5 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.3267, allocations: 9.979 MB / 419.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3268, allocations: 0 / 419.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3268, allocations: 0 / 419.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002584/0.327, allocations: 3.938 kB / 419.5 MB, free: 13.19 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.01526/0.3423, allocations: 7.25 MB / 426.7 MB, free: 6.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3424, allocations: 12.03 kB / 426.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01586/0.3582, allocations: 3.941 MB / 430.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008039/0.3663, allocations: 4.04 MB / 434.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/0.3665, allocations: 320.7 kB / 435.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009371/0.3675, allocations: 433.9 kB / 435.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02336/0.3909, allocations: 15.71 MB / 451.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001367/0.391, allocations: 63.45 kB / 451.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005787/0.3916, allocations: 205.2 kB / 451.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00467/0.3963, allocations: 3.211 MB / 454.7 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02537/0.4217, allocations: 14.14 MB / 468.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07154/0.4933, allocations: 57.75 MB / 0.5142 GB, free: 256 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01448/0.5078, allocations: 6.571 MB / 0.5206 GB, free: 9.418 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005047/0.5129, allocations: 3.68 MB / 0.5242 GB, free: 5.727 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.215/0.7279, allocations: 14.64 MB / 0.5385 GB, free: 136.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.52e-05/0.728, allocations: 62.83 kB / 0.5386 GB, free: 136.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.033e-06/0.728, allocations: 0 / 0.5386 GB, free: 136.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1383/0.8663, allocations: 42.34 MB / 0.5799 GB, free: 113.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.8664, allocations: 221.9 kB / 0.5801 GB, free: 113.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005666/0.8721, allocations: 5.462 MB / 0.5855 GB, free: 107.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005583/0.8726, allocations: 76.12 kB / 0.5855 GB, free: 107.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00165/0.8743, allocations: 4.355 MB / 0.5898 GB, free: 103.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00103/0.8753, allocations: 1.254 MB / 0.591 GB, free: 102 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002109/0.8775, allocations: 1.856 MB / 0.5928 GB, free: 100.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.66e-05/0.8775, allocations: 301.1 kB / 0.5931 GB, free: 99.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005068/0.8826, allocations: 4.808 MB / 0.5978 GB, free: 94.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006583/0.8892, allocations: 9.802 MB / 0.6074 GB, free: 82.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/0.9023, allocations: 15.58 MB / 0.6226 GB, free: 64.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-05/0.9024, allocations: 48 kB / 0.6226 GB, free: 64.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03942/0.9418, allocations: 19.56 MB / 0.6417 GB, free: 45.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002218/0.9421, allocations: 80.16 kB / 0.6418 GB, free: 44.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002655/0.9424, allocations: 180 kB / 0.642 GB, free: 44.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02309/0.9655, allocations: 5.94 MB / 0.6478 GB, free: 38.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007059/0.9726, allocations: 2.113 MB / 0.6499 GB, free: 36.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02909/1.002, allocations: 26.14 MB / 0.6754 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007467/1.009, allocations: 0.5501 MB / 0.6759 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001778/1.011, allocations: 0.5191 MB / 0.6764 GB, free: 9.238 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.006014/1.017, allocations: 3.101 MB / 0.6795 GB, free: 6.125 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001484/1.019, allocations: 0.4897 MB / 0.6799 GB, free: 5.629 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03456/1.053, allocations: 12.94 MB / 0.6926 GB, free: 8.629 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001109/1.053, allocations: 51.98 kB / 0.6926 GB, free: 8.578 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-05/1.053, allocations: 11.94 kB / 0.6926 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-05/1.053, allocations: 15.94 kB / 0.6927 GB, free: 8.551 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2546/1.308, allocations: 24.57 MB / 0.7166 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.662e-05/1.308, allocations: 6.625 kB / 0.7166 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003072/1.311, allocations: 0.5783 MB / 0.7172 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02019/1.331, allocations: 4.97 MB / 0.7221 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007366/1.332, allocations: 55.41 kB / 0.7221 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02299/1.355, allocations: 21.37 MB / 0.743 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/1.355, allocations: 10.31 kB / 0.743 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03301/1.388, allocations: 17.45 MB / 0.76 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/1.39, allocations: 0.5269 MB / 0.7605 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001192/1.391, allocations: 56 kB / 0.7606 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003103/1.394, allocations: 267.5 kB / 0.7609 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007506/1.395, allocations: 195.1 kB / 0.761 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002519/1.395, allocations: 80 kB / 0.7611 GB, free: 101.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00452/1.4, allocations: 3.398 MB / 0.7644 GB, free: 97.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.31e-07/1.4, allocations: 4 kB / 0.7644 GB, free: 97.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007702/1.407, allocations: 1.737 MB / 0.7661 GB, free: 96.15 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.0008241/1.408, allocations: 215.2 kB / 0.7663 GB, free: 95.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02155/1.43, allocations: 15.74 MB / 0.7817 GB, free: 80.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/1.43, allocations: 0 / 0.7817 GB, free: 80.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00539/1.435, allocations: 4.096 MB / 0.7857 GB, free: 76.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00406/1.439, allocations: 0.626 MB / 0.7863 GB, free: 75.63 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02448/1.464, allocations: 16.77 MB / 0.8027 GB, free: 58.87 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004951/1.469, allocations: 4.604 MB / 0.8072 GB, free: 54.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002096/1.471, allocations: 411.4 kB / 0.8076 GB, free: 53.83 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/1.471, allocations: 0 / 0.8076 GB, free: 53.83 MB / 462.1 MB Notification: Performance of Templates: time 0.3445/1.816, allocations: 149.4 MB / 0.9535 GB, free: 74 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