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.001197/0.001197, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001464/0.001464, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.211/0.211, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 75.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.3941, allocations: 62.43 MB / 0.531 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.02068/0.4148, allocations: 17.26 MB / 0.5478 GB, free: 260 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01467/0.4295, allocations: 5.485 MB / 0.5532 GB, free: 11.09 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004786/0.4344, allocations: 115.6 kB / 0.5533 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008917/0.4434, allocations: 4.349 MB / 0.5576 GB, free: 6.613 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008719/0.4521, allocations: 2.711 MB / 0.5602 GB, free: 3.895 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00535/0.4575, allocations: 1.459 MB / 0.5616 GB, free: 2.434 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01438/0.4719, allocations: 8.627 MB / 0.5701 GB, free: 9.789 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009581/0.4815, allocations: 5.379 MB / 0.5753 GB, free: 4.332 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005495/0.4871, allocations: 2.648 MB / 0.5779 GB, free: 1.676 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00759/0.4947, allocations: 3.821 MB / 0.5816 GB, free: 13.84 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002666/0.4974, allocations: 0.539 MB / 0.5822 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006189/0.5036, allocations: 1.611 MB / 0.5837 GB, free: 11.69 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006097/0.5097, allocations: 3.359 MB / 0.587 GB, free: 8.324 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008582/0.5183, allocations: 3.624 MB / 0.5905 GB, free: 4.68 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01846/0.5368, allocations: 11.12 MB / 0.6014 GB, free: 9.512 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.5369, allocations: 4 kB / 0.6014 GB, free: 9.508 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5369, allocations: 0 / 0.6014 GB, free: 9.508 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004776/0.5374, allocations: 0 / 0.6014 GB, free: 9.508 MB / 462.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.02037/0.5578, allocations: 8.19 MB / 0.6094 GB, free: 1.234 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.5578, allocations: 8.031 kB / 0.6094 GB, free: 1.227 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0295/0.5873, allocations: 3.67 MB / 0.613 GB, free: 13.54 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01329/0.6007, allocations: 5.274 MB / 0.6182 GB, free: 8.188 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003444/0.6011, allocations: 369.8 kB / 0.6185 GB, free: 7.824 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001932/0.603, allocations: 0.5191 MB / 0.619 GB, free: 7.305 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02921/0.6322, allocations: 16.25 MB / 0.6349 GB, free: 5.988 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001731/0.6324, allocations: 75.38 kB / 0.635 GB, free: 5.914 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005781/0.633, allocations: 235.8 kB / 0.6352 GB, free: 5.684 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004714/0.6377, allocations: 2.923 MB / 0.638 GB, free: 2.75 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03911/0.6769, allocations: 13.7 MB / 0.6514 GB, free: 5.031 MB / 0.4981 GB 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.105/0.782, allocations: 64.46 MB / 0.7144 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3236/1.106, allocations: 7.83 MB / 0.722 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00656/1.112, allocations: 4.279 MB / 0.7262 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02926/1.142, allocations: 19.37 MB / 0.7451 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.143e-05/1.142, allocations: 67.97 kB / 0.7452 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 5.941e-06/1.142, allocations: 3.719 kB / 0.7452 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=366): time 0.1707/1.312, allocations: 51.86 MB / 0.7958 GB, free: 99.47 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.683e-05/1.312, allocations: 269.8 kB / 0.7961 GB, free: 99.15 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007819/1.32, allocations: 6.042 MB / 0.802 GB, free: 93.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001088/1.321, allocations: 81.7 kB / 0.802 GB, free: 93.01 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002469/1.324, allocations: 4.673 MB / 0.8066 GB, free: 88.34 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001779/1.326, allocations: 1.342 MB / 0.8079 GB, free: 87.01 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00271/1.328, allocations: 1.911 MB / 0.8098 GB, free: 85.09 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.749e-05/1.329, allocations: 305.1 kB / 0.8101 GB, free: 84.79 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005635/1.334, allocations: 4.204 MB / 0.8142 GB, free: 80.57 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008078/1.342, allocations: 9.438 MB / 0.8234 GB, free: 68.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01522/1.358, allocations: 14.59 MB / 0.8376 GB, free: 51.44 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001464/1.358, allocations: 52 kB / 0.8377 GB, free: 51.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03467/1.392, allocations: 17.55 MB / 0.8548 GB, free: 33.79 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002817/1.393, allocations: 84 kB / 0.8549 GB, free: 33.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004143/1.393, allocations: 184 kB / 0.8551 GB, free: 33.53 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01484/1.408, allocations: 4.585 MB / 0.8596 GB, free: 28.94 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008572/1.417, allocations: 2.129 MB / 0.8616 GB, free: 26.81 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03569/1.452, allocations: 25.43 MB / 0.8865 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009478/1.462, allocations: 0.5262 MB / 0.887 GB, free: 0.582 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002307/1.464, allocations: 0.5351 MB / 0.8875 GB, free: 48 kB / 0.5606 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.008421/1.473, allocations: 3.117 MB / 0.8906 GB, free: 12.92 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00214/1.475, allocations: 0.5669 MB / 0.8911 GB, free: 12.34 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02829/1.503, allocations: 10.71 MB / 0.9016 GB, free: 1.57 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.51e-05/1.503, allocations: 40 kB / 0.9016 GB, free: 1.531 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-05/1.503, allocations: 22.16 kB / 0.9016 GB, free: 1.512 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.002e-05/1.503, allocations: 15.94 kB / 0.9016 GB, free: 1.496 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.045/1.548, allocations: 20.32 MB / 0.9215 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.921e-05/1.549, allocations: 7.875 kB / 0.9215 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003051/1.552, allocations: 0.5266 MB / 0.922 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01473/1.566, allocations: 4.23 MB / 0.9261 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009808/1.567, allocations: 63.98 kB / 0.9262 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3832/1.951, allocations: 23.17 MB / 0.9488 GB, free: 202.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/1.951, allocations: 1.031 kB / 0.9488 GB, free: 202.9 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03299/1.984, allocations: 15.61 MB / 0.9641 GB, free: 200.2 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001732/1.985, allocations: 0.5848 MB / 0.9646 GB, free: 200.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/1.987, allocations: 59.39 kB / 0.9647 GB, free: 200.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002879/1.989, allocations: 223.3 kB / 0.9649 GB, free: 200 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007525/1.99, allocations: 224.5 kB / 0.9651 GB, free: 200 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002721/1.991, allocations: 92.19 kB / 0.9652 GB, free: 200 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.005083/1.996, allocations: 3.771 MB / 0.9689 GB, free: 198.8 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/1.996, allocations: 2.031 kB / 0.9689 GB, free: 198.8 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0081/2.004, allocations: 1.895 MB / 0.9708 GB, free: 198.5 MB / 0.6231 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.0006743/2.004, allocations: 214.1 kB / 0.971 GB, free: 198.4 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01521/2.02, allocations: 10.47 MB / 0.9812 GB, free: 194.5 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/2.02, allocations: 6.375 kB / 0.9812 GB, free: 194.5 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005701/2.025, allocations: 4.096 MB / 0.9852 GB, free: 192.8 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005047/2.031, allocations: 0.7695 MB / 0.9859 GB, free: 192.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0278/2.058, allocations: 16.19 MB / 1.002 GB, free: 177.8 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00573/2.064, allocations: 4.849 MB / 1.006 GB, free: 173.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005882/2.07, allocations: 2.77 MB / 1.009 GB, free: 171 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/2.071, allocations: 379.4 kB / 1.01 GB, free: 170.7 MB / 0.6231 GB Notification: Performance of SimCode: time 7.81e-07/2.071, allocations: 3.938 kB / 1.01 GB, free: 170.7 MB / 0.6231 GB Notification: Performance of Templates: time 0.1264/2.198, allocations: 80.55 MB / 1.088 GB, free: 90.59 MB / 0.6231 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