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.0008106/0.0008106, allocations: 96.42 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 199.8 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.7 MB / 246.8 MB, free: 11.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002262, allocations: 11.98 kB / 307.8 MB, free: 0.7773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09115, allocations: 51.52 MB / 359.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2145/0.3057, allocations: 51.67 MB / 410.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02613/0.3319, allocations: 11.02 MB / 422 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009523/0.3414, allocations: 231.4 kB / 422.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001798/0.3433, allocations: 0.6143 MB / 422.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00575/0.349, allocations: 2.383 MB / 425.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.3508, allocations: 0.9095 MB / 426.1 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01121/0.3621, allocations: 9.961 MB / 436.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00794/0.37, allocations: 5.718 MB / 441.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003174/0.3733, allocations: 1.735 MB / 443.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005019/0.3783, allocations: 3.126 MB / 446.6 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001035/0.3794, allocations: 236 kB / 446.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00297/0.3824, allocations: 1.318 MB / 448.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002622/0.385, allocations: 2.598 MB / 450.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003308/0.3883, allocations: 2.939 MB / 453.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.3989, allocations: 9.607 MB / 463.3 MB, free: 2.539 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.399, allocations: 0 / 463.3 MB, free: 2.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.399, allocations: 0 / 463.3 MB, free: 2.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002522/0.3992, allocations: 0 / 463.3 MB, free: 2.539 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.01324/0.4125, allocations: 6.009 MB / 469.3 MB, free: 12.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.4126, allocations: 8.031 kB / 469.3 MB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01701/0.4296, allocations: 4.036 MB / 473.4 MB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008568/0.4382, allocations: 4.048 MB / 477.4 MB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002279/0.4384, allocations: 316.6 kB / 477.7 MB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/0.4395, allocations: 431.6 kB / 478.2 MB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0274/0.4669, allocations: 15.74 MB / 493.9 MB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001749/0.4672, allocations: 51.53 kB / 494 MB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006813/0.4679, allocations: 203.8 kB / 494.2 MB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005166/0.473, allocations: 3.224 MB / 497.4 MB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02825/0.5013, allocations: 14.15 MB / 0.4995 GB, free: 1.223 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2763/0.7776, allocations: 57.78 MB / 0.556 GB, free: 106.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01437/0.792, allocations: 6.564 MB / 0.5624 GB, free: 104.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005324/0.7974, allocations: 3.682 MB / 0.566 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02009/0.8175, allocations: 14.66 MB / 0.5803 GB, free: 95.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.8176, allocations: 59.75 kB / 0.5803 GB, free: 95.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 5.661e-06/0.8176, allocations: 3.812 kB / 0.5803 GB, free: 95.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1432/0.9608, allocations: 42.61 MB / 0.622 GB, free: 60.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.908e-05/0.9609, allocations: 210 kB / 0.6222 GB, free: 59.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009079/0.97, allocations: 5.458 MB / 0.6275 GB, free: 54.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008354/0.9709, allocations: 74.64 kB / 0.6276 GB, free: 54.46 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002516/0.9734, allocations: 4.352 MB / 0.6318 GB, free: 50.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001653/0.9751, allocations: 1.257 MB / 0.633 GB, free: 48.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001755/0.9769, allocations: 0.7743 MB / 0.6338 GB, free: 48.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.484e-05/0.9769, allocations: 317.1 kB / 0.6341 GB, free: 47.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007024/0.984, allocations: 4.804 MB / 0.6388 GB, free: 42.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009022/0.993, allocations: 9.804 MB / 0.6484 GB, free: 30.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01625/1.009, allocations: 15.58 MB / 0.6636 GB, free: 12.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001886/1.01, allocations: 56 kB / 0.6636 GB, free: 12.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04718/1.057, allocations: 19.57 MB / 0.6827 GB, free: 9.098 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002295/1.057, allocations: 82.5 kB / 0.6828 GB, free: 9.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003177/1.057, allocations: 172 kB / 0.683 GB, free: 8.852 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02453/1.082, allocations: 5.975 MB / 0.6888 GB, free: 2.867 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008336/1.09, allocations: 2.117 MB / 0.6909 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2365/1.327, allocations: 24.77 MB / 0.7151 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007731/1.335, allocations: 0.5704 MB / 0.7156 GB, free: 152.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001744/1.336, allocations: 0.5059 MB / 0.7161 GB, free: 152.4 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.006504/1.343, allocations: 3.098 MB / 0.7192 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001067/1.344, allocations: 496.3 kB / 0.7196 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03179/1.376, allocations: 12.96 MB / 0.7323 GB, free: 147.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001031/1.376, allocations: 53.45 kB / 0.7323 GB, free: 147.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.39e-05/1.376, allocations: 13.41 kB / 0.7323 GB, free: 147.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.233e-05/1.376, allocations: 11.86 kB / 0.7324 GB, free: 147.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04706/1.423, allocations: 24.64 MB / 0.7564 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-05/1.423, allocations: 11.98 kB / 0.7564 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002937/1.426, allocations: 0.5761 MB / 0.757 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01941/1.445, allocations: 5 MB / 0.7619 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005943/1.446, allocations: 56 kB / 0.7619 GB, free: 129 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02162/1.468, allocations: 20.01 MB / 0.7815 GB, free: 108.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.468, allocations: 4 kB / 0.7815 GB, free: 108.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03336/1.501, allocations: 17.48 MB / 0.7985 GB, free: 91.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/1.503, allocations: 0.5439 MB / 0.7991 GB, free: 90.98 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009634/1.504, allocations: 52.78 kB / 0.7991 GB, free: 90.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002859/1.507, allocations: 265 kB / 0.7994 GB, free: 90.67 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007108/1.507, allocations: 198.2 kB / 0.7996 GB, free: 90.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002493/1.508, allocations: 81.72 kB / 0.7996 GB, free: 90.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004162/1.512, allocations: 3.398 MB / 0.803 GB, free: 87.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.512, allocations: 0 / 0.803 GB, free: 87.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0073/1.519, allocations: 1.738 MB / 0.8047 GB, free: 85.29 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.000657/1.52, allocations: 209.9 kB / 0.8049 GB, free: 85.09 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01432/1.534, allocations: 10.92 MB / 0.8155 GB, free: 74.22 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.538e-05/1.534, allocations: 7.5 kB / 0.8155 GB, free: 74.21 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005496/1.54, allocations: 4.096 MB / 0.8195 GB, free: 70.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008508/1.548, allocations: 0.6044 MB / 0.8201 GB, free: 69.54 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02585/1.574, allocations: 19.25 MB / 0.8389 GB, free: 50.25 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005629/1.58, allocations: 4.626 MB / 0.8434 GB, free: 45.59 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006548/1.586, allocations: 2.963 MB / 0.8463 GB, free: 42.62 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/1.588, allocations: 355.4 kB / 0.8467 GB, free: 42.27 MB / 478.1 MB Notification: Performance of SimCode: time 1.433e-06/1.588, allocations: 0 / 0.8467 GB, free: 42.27 MB / 478.1 MB Notification: Performance of Templates: time 0.332/1.92, allocations: 76.53 MB / 0.9214 GB, free: 131 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.0.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