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.001571/0.001571, allocations: 113.4 kB / 17.99 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001852/0.001852, allocations: 209.8 kB / 18.92 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2232/0.2232, allocations: 46.1 MB / 344.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 75.75 kB / 417.7 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1168, allocations: 62.44 MB / 480.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.2948/0.4116, allocations: 72.7 MB / 0.5399 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04138/0.453, allocations: 14.39 MB / 0.554 GB, free: 8.484 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02022/0.4733, allocations: 323.2 kB / 0.5543 GB, free: 8.434 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008713/0.4821, allocations: 4.183 MB / 0.5583 GB, free: 5.688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008214/0.4904, allocations: 2.524 MB / 0.5608 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003696/0.4941, allocations: 1.383 MB / 0.5622 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01322/0.5073, allocations: 9.026 MB / 0.571 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008288/0.5157, allocations: 5.628 MB / 0.5765 GB, free: 4.609 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005339/0.5211, allocations: 2.741 MB / 0.5792 GB, free: 1.859 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006327/0.5274, allocations: 4.218 MB / 0.5833 GB, free: 13.63 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002264/0.5298, allocations: 0.5352 MB / 0.5838 GB, free: 13.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00418/0.534, allocations: 1.627 MB / 0.5854 GB, free: 11.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004661/0.5387, allocations: 3.355 MB / 0.5887 GB, free: 8.102 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006867/0.5456, allocations: 3.655 MB / 0.5922 GB, free: 4.426 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01096/0.5566, allocations: 8.744 MB / 0.6008 GB, free: 11.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.5566, allocations: 0 / 0.6008 GB, free: 11.66 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5566, allocations: 0 / 0.6008 GB, free: 11.66 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003699/0.557, allocations: 4 kB / 0.6008 GB, free: 11.66 MB / 446.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.02138/0.5784, allocations: 8.179 MB / 0.6088 GB, free: 3.395 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.5784, allocations: 8.031 kB / 0.6088 GB, free: 3.387 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0304/0.6089, allocations: 3.677 MB / 0.6124 GB, free: 15.7 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01325/0.6222, allocations: 5.176 MB / 0.6174 GB, free: 10.43 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004023/0.6226, allocations: 365.8 kB / 0.6178 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0023/0.6249, allocations: 0.5193 MB / 0.6183 GB, free: 9.555 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03654/0.6615, allocations: 16.25 MB / 0.6341 GB, free: 8.238 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004223/0.662, allocations: 75.31 kB / 0.6342 GB, free: 8.164 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001877/0.6639, allocations: 235.8 kB / 0.6344 GB, free: 7.934 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005446/0.6693, allocations: 2.926 MB / 0.6373 GB, free: 5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03109/0.7005, allocations: 13.69 MB / 0.6507 GB, free: 7.285 MB / 494.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.09724/0.7977, allocations: 64.75 MB / 0.7139 GB, free: 4.664 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2463/1.044, allocations: 7.818 MB / 0.7215 GB, free: 194.5 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006491/1.051, allocations: 4.287 MB / 0.7257 GB, free: 193.1 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03106/1.082, allocations: 19.36 MB / 0.7446 GB, free: 183.2 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/1.082, allocations: 71.33 kB / 0.7447 GB, free: 183.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=284): time 6.262e-06/1.082, allocations: 0 / 0.7447 GB, free: 183.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=366): time 0.1657/1.248, allocations: 51.86 MB / 0.7953 GB, free: 142.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.445e-05/1.248, allocations: 277.7 kB / 0.7956 GB, free: 142.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007352/1.255, allocations: 6.046 MB / 0.8015 GB, free: 136.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009122/1.256, allocations: 85.7 kB / 0.8016 GB, free: 136 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002492/1.258, allocations: 4.661 MB / 0.8061 GB, free: 131.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001475/1.26, allocations: 1.353 MB / 0.8075 GB, free: 130 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002709/1.263, allocations: 1.9 MB / 0.8093 GB, free: 128.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.138e-05/1.263, allocations: 305.1 kB / 0.8096 GB, free: 127.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005285/1.268, allocations: 4.212 MB / 0.8137 GB, free: 123.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00782/1.276, allocations: 9.432 MB / 0.8229 GB, free: 111.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01418/1.29, allocations: 14.59 MB / 0.8372 GB, free: 94.41 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001463/1.29, allocations: 52 kB / 0.8372 GB, free: 94.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03396/1.324, allocations: 17.55 MB / 0.8544 GB, free: 76.77 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/1.324, allocations: 84 kB / 0.8544 GB, free: 76.69 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001699/1.325, allocations: 180 kB / 0.8546 GB, free: 76.52 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01438/1.339, allocations: 4.6 MB / 0.8591 GB, free: 71.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007009/1.346, allocations: 2.121 MB / 0.8612 GB, free: 69.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03334/1.379, allocations: 25.46 MB / 0.886 GB, free: 44.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.011/1.391, allocations: 0.5305 MB / 0.8866 GB, free: 43.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002434/1.393, allocations: 0.5312 MB / 0.8871 GB, free: 42.98 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.008186/1.401, allocations: 3.114 MB / 0.8901 GB, free: 39.86 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001927/1.403, allocations: 0.567 MB / 0.8907 GB, free: 39.29 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02164/1.425, allocations: 10.72 MB / 0.9011 GB, free: 28.51 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.477e-05/1.425, allocations: 36 kB / 0.9012 GB, free: 28.47 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-05/1.425, allocations: 20 kB / 0.9012 GB, free: 28.45 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.681e-05/1.425, allocations: 15.94 kB / 0.9012 GB, free: 28.44 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4415/1.867, allocations: 20.46 MB / 0.9212 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.358e-05/1.867, allocations: 1.062 kB / 0.9212 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005791/1.872, allocations: 0.5287 MB / 0.9217 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03085/1.903, allocations: 4.249 MB / 0.9259 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001275/1.905, allocations: 63.61 kB / 0.9259 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06754/1.972, allocations: 23.16 MB / 0.9485 GB, free: 162.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.229e-05/1.972, allocations: 7.75 kB / 0.9485 GB, free: 162.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05936/2.032, allocations: 15.61 MB / 0.9638 GB, free: 157.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003885/2.036, allocations: 0.5901 MB / 0.9644 GB, free: 157.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004121/2.04, allocations: 57.58 kB / 0.9644 GB, free: 157.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008486/2.049, allocations: 229 kB / 0.9646 GB, free: 157 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002606/2.051, allocations: 223.2 kB / 0.9648 GB, free: 157 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001071/2.052, allocations: 96.8 kB / 0.9649 GB, free: 157 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01161/2.064, allocations: 3.775 MB / 0.9686 GB, free: 155.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.022e-06/2.064, allocations: 3.812 kB / 0.9686 GB, free: 155.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01929/2.083, allocations: 1.895 MB / 0.9705 GB, free: 154.3 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.001844/2.085, allocations: 214.9 kB / 0.9707 GB, free: 154.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.04283/2.128, allocations: 15.16 MB / 0.9855 GB, free: 139 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.659e-05/2.128, allocations: 0 / 0.9855 GB, free: 139 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01021/2.138, allocations: 4.096 MB / 0.9895 GB, free: 134.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0121/2.151, allocations: 0.7744 MB / 0.9902 GB, free: 134.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05807/2.209, allocations: 20.14 MB / 1.01 GB, free: 114.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01387/2.223, allocations: 4.815 MB / 1.015 GB, free: 109.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003359/2.226, allocations: 443.4 kB / 1.015 GB, free: 109 MB / 0.545 GB Notification: Performance of SimCode: time 2.104e-06/2.226, allocations: 0 / 1.015 GB, free: 109 MB / 0.545 GB Notification: Performance of Templates: time 0.7377/2.964, allocations: 152.6 MB / 1.164 GB, free: 151.5 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches