Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, 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.001546/0.001547, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2545/0.2545, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 78.88 kB / 417.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1489, allocations: 62.44 MB / 480 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.02139/0.1704, allocations: 17.26 MB / 497.3 MB, free: 3.941 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01473/0.1852, allocations: 5.49 MB / 0.491 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003627/0.1888, allocations: 119.6 kB / 0.4911 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009402/0.1983, allocations: 4.353 MB / 0.4954 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008803/0.2072, allocations: 2.707 MB / 0.498 GB, free: 7.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003762/0.2109, allocations: 1.451 MB / 0.4994 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2434/0.4543, allocations: 8.645 MB / 0.5079 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007617/0.462, allocations: 5.369 MB / 0.5131 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005256/0.4673, allocations: 2.66 MB / 0.5157 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006356/0.4737, allocations: 3.831 MB / 0.5194 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002228/0.4759, allocations: 0.5344 MB / 0.52 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004738/0.4807, allocations: 1.614 MB / 0.5215 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004773/0.4854, allocations: 3.304 MB / 0.5248 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005835/0.4913, allocations: 3.629 MB / 0.5283 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01082/0.5022, allocations: 10.81 MB / 0.5389 GB, free: 3.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.5022, allocations: 0 / 0.5389 GB, free: 3.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5022, allocations: 0 / 0.5389 GB, free: 3.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005321/0.5028, allocations: 0 / 0.5389 GB, free: 3.496 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02394/0.5267, allocations: 8.191 MB / 0.5469 GB, free: 13.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.5268, allocations: 8.031 kB / 0.5469 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03132/0.5581, allocations: 3.679 MB / 0.5505 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01615/0.5743, allocations: 5.184 MB / 0.5555 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003858/0.5747, allocations: 369.7 kB / 0.5559 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002767/0.5775, allocations: 0.51 MB / 0.5564 GB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03924/0.6168, allocations: 16.26 MB / 0.5723 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003874/0.6172, allocations: 80.33 kB / 0.5723 GB, free: 3.316 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002091/0.6193, allocations: 237 kB / 0.5726 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005213/0.6246, allocations: 2.924 MB / 0.5754 GB, free: 264 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03077/0.6554, allocations: 13.72 MB / 0.5888 GB, free: 2.801 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.09734/0.7528, allocations: 64.82 MB / 0.6521 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02487/0.7777, allocations: 7.862 MB / 0.6598 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006597/0.7843, allocations: 4.362 MB / 0.6641 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04452/0.8289, allocations: 19.45 MB / 0.6831 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.191e-05/0.829, allocations: 64.56 kB / 0.6831 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=290): time 6.793e-06/0.829, allocations: 0 / 0.6831 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=372): time 0.4254/1.254, allocations: 49.83 MB / 0.7318 GB, free: 185.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/1.255, allocations: 272.1 kB / 0.732 GB, free: 185 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01202/1.267, allocations: 6.049 MB / 0.7379 GB, free: 182.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001023/1.268, allocations: 83.27 kB / 0.738 GB, free: 182.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003066/1.271, allocations: 4.663 MB / 0.7426 GB, free: 179.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002118/1.273, allocations: 1.367 MB / 0.7439 GB, free: 178.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002901/1.276, allocations: 1.918 MB / 0.7458 GB, free: 177.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.623e-05/1.276, allocations: 301.1 kB / 0.7461 GB, free: 177 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005797/1.282, allocations: 4.232 MB / 0.7502 GB, free: 175.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01015/1.292, allocations: 9.457 MB / 0.7594 GB, free: 167.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01602/1.308, allocations: 14.64 MB / 0.7737 GB, free: 156 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000186/1.308, allocations: 54.25 kB / 0.7738 GB, free: 156 MB / 0.545 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03532/1.343, allocations: 17.57 MB / 0.7909 GB, free: 139.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/1.344, allocations: 84 kB / 0.791 GB, free: 139.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001762/1.344, allocations: 186.1 kB / 0.7912 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01329/1.357, allocations: 4.553 MB / 0.7956 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007841/1.365, allocations: 2.137 MB / 0.7977 GB, free: 132.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02994/1.395, allocations: 25.39 MB / 0.8225 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009574/1.405, allocations: 0.5247 MB / 0.823 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001737/1.406, allocations: 0.5468 MB / 0.8236 GB, free: 106.1 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 (1136): * Single equations (assignments): 1131 * 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,44,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005494/1.412, allocations: 3.112 MB / 0.8266 GB, free: 102.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0014/1.413, allocations: 0.5631 MB / 0.8272 GB, free: 102.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02077/1.434, allocations: 10.72 MB / 0.8376 GB, free: 91.59 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/1.434, allocations: 45.73 kB / 0.8377 GB, free: 91.55 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.129e-05/1.434, allocations: 16 kB / 0.8377 GB, free: 91.54 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001265/1.434, allocations: 23.92 kB / 0.8377 GB, free: 91.51 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0393/1.474, allocations: 20.52 MB / 0.8577 GB, free: 70.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.102e-05/1.474, allocations: 4 kB / 0.8578 GB, free: 70.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002923/1.477, allocations: 0.5344 MB / 0.8583 GB, free: 70.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01238/1.489, allocations: 4.197 MB / 0.8624 GB, free: 66.17 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007916/1.49, allocations: 63.98 kB / 0.8624 GB, free: 66.11 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02724/1.517, allocations: 23.14 MB / 0.885 GB, free: 42.69 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.517, allocations: 0 / 0.885 GB, free: 42.69 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02579/1.543, allocations: 15.65 MB / 0.9003 GB, free: 26.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/1.545, allocations: 0.5874 MB / 0.9009 GB, free: 26.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001592/1.547, allocations: 56 kB / 0.9009 GB, free: 26.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003392/1.55, allocations: 227.6 kB / 0.9012 GB, free: 26.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001017/1.551, allocations: 226.2 kB / 0.9014 GB, free: 25.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002938/1.551, allocations: 98.95 kB / 0.9015 GB, free: 25.75 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005757/1.557, allocations: 3.769 MB / 0.9051 GB, free: 21.98 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.61e-07/1.557, allocations: 3.938 kB / 0.9051 GB, free: 21.98 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008976/1.566, allocations: 1.9 MB / 0.907 GB, free: 20.09 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 (272): * Single equations (assignments): 267 * 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.0007275/1.567, allocations: 216 kB / 0.9072 GB, free: 19.87 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2218/1.789, allocations: 15.44 MB / 0.9223 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/1.789, allocations: 1.094 kB / 0.9223 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006599/1.795, allocations: 4.14 MB / 0.9263 GB, free: 177.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006479/1.802, allocations: 0.7683 MB / 0.9271 GB, free: 177.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02336/1.825, allocations: 16.41 MB / 0.9431 GB, free: 170.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004369/1.83, allocations: 4.862 MB / 0.9479 GB, free: 169.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006167/1.836, allocations: 2.788 MB / 0.9506 GB, free: 168.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001107/1.837, allocations: 376.8 kB / 0.9509 GB, free: 168.9 MB / 0.545 GB Notification: Performance of SimCode: time 6.91e-07/1.837, allocations: 0 / 0.9509 GB, free: 168.9 MB / 0.545 GB Notification: Performance of Templates: time 0.1245/1.962, allocations: 84.45 MB / 1.033 GB, free: 88.93 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches