Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001704/0.001704, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002003/0.002003, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2298/0.2298, allocations: 46.11 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 84.33 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1685, allocations: 62.46 MB / 480.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.02828/0.1968, allocations: 17.24 MB / 497.4 MB, free: 3.863 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.2125, allocations: 5.498 MB / 0.4911 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004668/0.2172, allocations: 115.6 kB / 0.4912 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01391/0.2313, allocations: 4.349 MB / 0.4954 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0111/0.2425, allocations: 2.692 MB / 0.4981 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004994/0.2475, allocations: 1.47 MB / 0.4995 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2949/0.5425, allocations: 8.626 MB / 0.5079 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009615/0.5521, allocations: 5.369 MB / 0.5132 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008179/0.5603, allocations: 2.654 MB / 0.5157 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01057/0.571, allocations: 3.817 MB / 0.5195 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004715/0.5757, allocations: 0.5327 MB / 0.52 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008273/0.584, allocations: 1.606 MB / 0.5216 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007851/0.5919, allocations: 3.301 MB / 0.5248 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01102/0.603, allocations: 3.627 MB / 0.5283 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01656/0.6196, allocations: 10.79 MB / 0.5389 GB, free: 3.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.6196, allocations: 7.922 kB / 0.5389 GB, free: 3.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6197, allocations: 0 / 0.5389 GB, free: 3.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004726/0.6201, allocations: 0 / 0.5389 GB, free: 3.5 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02835/0.6485, allocations: 8.175 MB / 0.5469 GB, free: 13.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.252e-05/0.6486, allocations: 12.03 kB / 0.5469 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04331/0.6919, allocations: 3.676 MB / 0.5505 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01927/0.7112, allocations: 5.179 MB / 0.5555 GB, free: 5.176 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00056/0.7118, allocations: 363.4 kB / 0.5559 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00311/0.7149, allocations: 0.5218 MB / 0.5564 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03956/0.7545, allocations: 16.24 MB / 0.5722 GB, free: 3.387 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004801/0.755, allocations: 84.11 kB / 0.5723 GB, free: 3.332 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002181/0.7572, allocations: 234.8 kB / 0.5725 GB, free: 3.156 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005684/0.7629, allocations: 2.917 MB / 0.5754 GB, free: 288 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03613/0.7991, allocations: 13.71 MB / 0.5888 GB, free: 2.832 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1082/0.9074, allocations: 64.73 MB / 0.652 GB, free: 1.051 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02598/0.9334, allocations: 7.838 MB / 0.6596 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007344/0.9408, allocations: 4.274 MB / 0.6638 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04079/0.9816, allocations: 19.36 MB / 0.6827 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.799e-05/0.9818, allocations: 72.03 kB / 0.6828 GB, free: 0.8125 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=284): time 8.406e-06/0.9818, allocations: 0 / 0.6828 GB, free: 0.8125 MB / 0.5137 GB Notification: Performance of matching and sorting (n=366): time 0.4715/1.453, allocations: 51.85 MB / 0.7334 GB, free: 184.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/1.453, allocations: 269.1 kB / 0.7337 GB, free: 183.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01173/1.465, allocations: 6.046 MB / 0.7396 GB, free: 181.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001272/1.467, allocations: 82.33 kB / 0.7397 GB, free: 181.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003661/1.47, allocations: 4.667 MB / 0.7442 GB, free: 178.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002199/1.472, allocations: 1.357 MB / 0.7456 GB, free: 177.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003262/1.476, allocations: 1.902 MB / 0.7474 GB, free: 176.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.879e-05/1.476, allocations: 301.1 kB / 0.7477 GB, free: 175.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005508/1.481, allocations: 4.211 MB / 0.7518 GB, free: 174.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008681/1.49, allocations: 9.431 MB / 0.761 GB, free: 166.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01853/1.509, allocations: 14.6 MB / 0.7753 GB, free: 154.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003582/1.509, allocations: 52 kB / 0.7753 GB, free: 154.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03713/1.546, allocations: 17.56 MB / 0.7925 GB, free: 138 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/1.546, allocations: 82.66 kB / 0.7926 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001834/1.546, allocations: 180 kB / 0.7927 GB, free: 137.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01414/1.561, allocations: 4.595 MB / 0.7972 GB, free: 133.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007304/1.568, allocations: 2.129 MB / 0.7993 GB, free: 131 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03123/1.599, allocations: 25.45 MB / 0.8242 GB, free: 105.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008957/1.608, allocations: 0.5227 MB / 0.8247 GB, free: 104.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002093/1.61, allocations: 0.5397 MB / 0.8252 GB, free: 104.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1130): * Single equations (assignments): 1125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,45,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007396/1.618, allocations: 3.115 MB / 0.8282 GB, free: 101.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002147/1.62, allocations: 0.5631 MB / 0.8288 GB, free: 100.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02337/1.643, allocations: 10.71 MB / 0.8392 GB, free: 89.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.28e-05/1.643, allocations: 43.94 kB / 0.8393 GB, free: 89.76 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-05/1.644, allocations: 16 kB / 0.8393 GB, free: 89.75 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001006/1.644, allocations: 15.94 kB / 0.8393 GB, free: 89.73 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04913/1.693, allocations: 20.48 MB / 0.8593 GB, free: 69.17 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-05/1.693, allocations: 0 / 0.8593 GB, free: 69.17 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003255/1.696, allocations: 0.5382 MB / 0.8598 GB, free: 68.63 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01347/1.71, allocations: 4.24 MB / 0.864 GB, free: 64.38 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001049/1.711, allocations: 59.98 kB / 0.864 GB, free: 64.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03067/1.741, allocations: 23.17 MB / 0.8867 GB, free: 40.86 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.741, allocations: 0 / 0.8867 GB, free: 40.86 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02936/1.771, allocations: 15.6 MB / 0.9019 GB, free: 25.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002665/1.774, allocations: 0.5835 MB / 0.9025 GB, free: 24.57 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002419/1.776, allocations: 60 kB / 0.9025 GB, free: 24.51 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004403/1.78, allocations: 230.8 kB / 0.9028 GB, free: 24.29 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001296/1.782, allocations: 230.5 kB / 0.903 GB, free: 24.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005918/1.782, allocations: 95.98 kB / 0.9031 GB, free: 23.97 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007324/1.79, allocations: 3.765 MB / 0.9067 GB, free: 20.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.79, allocations: 4 kB / 0.9067 GB, free: 20.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01167/1.801, allocations: 1.893 MB / 0.9086 GB, free: 18.31 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (266): * Single equations (assignments): 261 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001245/1.803, allocations: 211 kB / 0.9088 GB, free: 18.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3057/2.108, allocations: 15.16 MB / 0.9236 GB, free: 179.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/2.108, allocations: 1.625 kB / 0.9236 GB, free: 179.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00708/2.115, allocations: 4.1 MB / 0.9276 GB, free: 177.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00619/2.122, allocations: 0.7682 MB / 0.9284 GB, free: 177.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03406/2.156, allocations: 16.36 MB / 0.9443 GB, free: 170.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007008/2.163, allocations: 4.85 MB / 0.9491 GB, free: 169.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006835/2.17, allocations: 2.771 MB / 0.9518 GB, free: 168.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001309/2.171, allocations: 375.1 kB / 0.9521 GB, free: 168.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.142e-06/2.171, allocations: 0 / 0.9521 GB, free: 168.5 MB / 0.545 GB Notification: Performance of Templates: time 0.141/2.312, allocations: 84.47 MB / 1.035 GB, free: 87.64 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches