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.001145/0.001145, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2278/0.2278, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 79.86 kB / 481.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.3908, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.01921/0.4101, allocations: 17.28 MB / 0.5479 GB, free: 4 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.4235, allocations: 5.49 MB / 0.5532 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003646/0.4272, allocations: 115.7 kB / 0.5533 GB, free: 10.76 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008379/0.4356, allocations: 4.341 MB / 0.5576 GB, free: 6.406 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00861/0.4443, allocations: 2.722 MB / 0.5602 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004297/0.4486, allocations: 1.447 MB / 0.5617 GB, free: 2.227 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01569/0.4643, allocations: 8.656 MB / 0.5701 GB, free: 9.555 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009883/0.4743, allocations: 5.371 MB / 0.5754 GB, free: 4.109 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007342/0.4816, allocations: 2.66 MB / 0.578 GB, free: 1.441 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008774/0.4905, allocations: 3.828 MB / 0.5817 GB, free: 13.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003057/0.4936, allocations: 0.5352 MB / 0.5822 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005199/0.4988, allocations: 1.615 MB / 0.5838 GB, free: 11.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00557/0.5044, allocations: 3.308 MB / 0.587 GB, free: 8.133 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00824/0.5127, allocations: 3.627 MB / 0.5906 GB, free: 4.484 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01817/0.5309, allocations: 11.18 MB / 0.6015 GB, free: 9.254 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.5309, allocations: 11.94 kB / 0.6015 GB, free: 9.242 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.5309, allocations: 0 / 0.6015 GB, free: 9.242 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004289/0.5314, allocations: 3.938 kB / 0.6015 GB, free: 9.238 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02441/0.5558, allocations: 8.39 MB / 0.6097 GB, free: 0.75 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.5558, allocations: 12.03 kB / 0.6097 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02893/0.5848, allocations: 3.71 MB / 0.6133 GB, free: 13.02 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/0.6005, allocations: 5.315 MB / 0.6185 GB, free: 7.625 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004357/0.601, allocations: 369.8 kB / 0.6189 GB, free: 7.262 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002501/0.6035, allocations: 0.5154 MB / 0.6194 GB, free: 6.746 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03561/0.6392, allocations: 16.26 MB / 0.6352 GB, free: 5.422 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003248/0.6396, allocations: 83.34 kB / 0.6353 GB, free: 5.34 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001027/0.6406, allocations: 235.8 kB / 0.6356 GB, free: 5.109 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004935/0.6455, allocations: 2.927 MB / 0.6384 GB, free: 2.176 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03172/0.6773, allocations: 13.72 MB / 0.6518 GB, free: 4.426 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.08886/0.7662, allocations: 64.65 MB / 0.7149 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.324/1.09, allocations: 7.864 MB / 0.7226 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00582/1.096, allocations: 4.351 MB / 0.7269 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02473/1.121, allocations: 19.47 MB / 0.7459 GB, free: 149 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.577e-05/1.121, allocations: 67 kB / 0.746 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=290): time 6.532e-06/1.121, allocations: 2.625 kB / 0.746 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=372): time 0.246/1.367, allocations: 50.21 MB / 0.795 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.464e-05/1.367, allocations: 273.8 kB / 0.7952 GB, free: 99.82 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009421/1.377, allocations: 6.049 MB / 0.8012 GB, free: 93.88 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001042/1.378, allocations: 85.7 kB / 0.8012 GB, free: 93.79 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002598/1.38, allocations: 4.849 MB / 0.806 GB, free: 89.27 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00188/1.382, allocations: 1.432 MB / 0.8074 GB, free: 87.86 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004271/1.386, allocations: 1.929 MB / 0.8093 GB, free: 85.92 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.958e-05/1.387, allocations: 305.1 kB / 0.8095 GB, free: 85.62 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005552/1.392, allocations: 4.227 MB / 0.8137 GB, free: 81.38 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007918/1.4, allocations: 9.466 MB / 0.8229 GB, free: 69.38 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01438/1.414, allocations: 14.64 MB / 0.8372 GB, free: 52.17 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001724/1.415, allocations: 52 kB / 0.8373 GB, free: 52.12 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03456/1.449, allocations: 17.59 MB / 0.8544 GB, free: 34.49 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002479/1.45, allocations: 84 kB / 0.8545 GB, free: 34.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000318/1.45, allocations: 188.1 kB / 0.8547 GB, free: 34.22 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01362/1.464, allocations: 4.535 MB / 0.8591 GB, free: 29.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007709/1.471, allocations: 2.133 MB / 0.8612 GB, free: 27.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03244/1.504, allocations: 25.41 MB / 0.886 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008022/1.512, allocations: 0.5229 MB / 0.8865 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002035/1.514, allocations: 0.5429 MB / 0.8871 GB, free: 0.8008 MB / 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 (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.00725/1.521, allocations: 3.12 MB / 0.8901 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001964/1.523, allocations: 0.5975 MB / 0.8907 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0263/1.549, allocations: 10.72 MB / 0.9012 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.055e-05/1.55, allocations: 40 kB / 0.9012 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.805e-05/1.55, allocations: 16 kB / 0.9012 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000111/1.55, allocations: 15.94 kB / 0.9012 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04449/1.594, allocations: 20.37 MB / 0.9211 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.518e-05/1.594, allocations: 3.938 kB / 0.9211 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003513/1.598, allocations: 0.5344 MB / 0.9217 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01436/1.612, allocations: 4.187 MB / 0.9257 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001019/1.613, allocations: 63.98 kB / 0.9258 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03551/1.649, allocations: 23.15 MB / 0.9484 GB, free: 1.566 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/1.649, allocations: 0 / 0.9484 GB, free: 1.566 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3757/2.025, allocations: 15.68 MB / 0.9637 GB, free: 200.5 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00204/2.027, allocations: 0.6124 MB / 0.9643 GB, free: 200.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00112/2.028, allocations: 63.33 kB / 0.9644 GB, free: 200.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002851/2.031, allocations: 220.9 kB / 0.9646 GB, free: 200.3 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007395/2.031, allocations: 230.9 kB / 0.9648 GB, free: 200.3 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002594/2.032, allocations: 95.91 kB / 0.9649 GB, free: 200.3 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.005082/2.037, allocations: 3.771 MB / 0.9686 GB, free: 199 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.01e-07/2.037, allocations: 0 / 0.9686 GB, free: 199 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.007227/2.044, allocations: 1.909 MB / 0.9704 GB, free: 198.8 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 (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.0005903/2.045, allocations: 200.9 kB / 0.9706 GB, free: 198.7 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01293/2.058, allocations: 10.55 MB / 0.9809 GB, free: 194.8 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/2.058, allocations: 6.562 kB / 0.9809 GB, free: 194.8 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005045/2.063, allocations: 4.14 MB / 0.985 GB, free: 193 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004508/2.067, allocations: 0.7778 MB / 0.9858 GB, free: 192.3 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02421/2.091, allocations: 16.46 MB / 1.002 GB, free: 177.7 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005562/2.097, allocations: 4.855 MB / 1.007 GB, free: 173.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005783/2.103, allocations: 2.797 MB / 1.009 GB, free: 170.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/2.104, allocations: 383.4 kB / 1.01 GB, free: 170.6 MB / 0.6231 GB Notification: Performance of SimCode: time 1.693e-06/2.104, allocations: 0 / 1.01 GB, free: 170.6 MB / 0.6231 GB Notification: Performance of Templates: time 0.1101/2.214, allocations: 79.8 MB / 1.088 GB, free: 91.13 MB / 0.6231 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