Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00161/0.001615, allocations: 184.3 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00123/0.00123, allocations: 104.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5083/0.5083, allocations: 43.56 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004761/0.0004763, allocations: 12 kB / 431.4 MB, free: 6.172 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1295, allocations: 58.86 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.4056/0.5351, allocations: 62.67 MB / 0.5399 GB, free: 6.008 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04454/0.5797, allocations: 14.66 MB / 0.5542 GB, free: 12.05 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01628/0.5961, allocations: 326.2 kB / 0.5546 GB, free: 11.99 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01162/0.6078, allocations: 3.079 MB / 0.5576 GB, free: 10.97 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03724/0.6451, allocations: 8.94 MB / 0.5663 GB, free: 6.676 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007377/0.6525, allocations: 1.259 MB / 0.5675 GB, free: 6.203 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07522/0.7278, allocations: 28.1 MB / 0.595 GB, free: 15.25 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01464/0.7425, allocations: 6.35 MB / 0.6012 GB, free: 8.855 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005302/0.7478, allocations: 1.857 MB / 0.603 GB, free: 6.992 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006298/0.7542, allocations: 2.641 MB / 0.6056 GB, free: 4.344 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001943/0.7562, allocations: 248 kB / 0.6058 GB, free: 4.102 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004717/0.761, allocations: 1.163 MB / 0.6069 GB, free: 2.938 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005299/0.7663, allocations: 2.767 MB / 0.6096 GB, free: 168 kB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003196/0.7696, allocations: 1.326 MB / 0.6109 GB, free: 14.82 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01861/0.7882, allocations: 8.865 MB / 0.6196 GB, free: 5.941 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.7883, allocations: 0 / 0.6196 GB, free: 5.941 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.7883, allocations: 0 / 0.6196 GB, free: 5.941 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004277/0.7888, allocations: 0 / 0.6196 GB, free: 5.941 MB / 442.7 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.03174/0.8206, allocations: 7.373 MB / 0.6268 GB, free: 14.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.8206, allocations: 11.97 kB / 0.6268 GB, free: 14.47 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3396/1.16, allocations: 15.1 MB / 0.6415 GB, free: 15.34 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02155/1.182, allocations: 6.187 MB / 0.6476 GB, free: 9.074 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005406/1.182, allocations: 374.5 kB / 0.6479 GB, free: 8.707 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002631/1.185, allocations: 0.5111 MB / 0.6484 GB, free: 8.195 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05053/1.236, allocations: 16.34 MB / 0.6644 GB, free: 6.785 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003958/1.236, allocations: 79.3 kB / 0.6645 GB, free: 6.707 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001973/1.238, allocations: 235.8 kB / 0.6647 GB, free: 6.477 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008667/1.247, allocations: 2.923 MB / 0.6676 GB, free: 3.551 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3829/1.63, allocations: 13.66 MB / 0.6809 GB, free: 131.4 MB / 490.7 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.1143/1.744, allocations: 64.44 MB / 0.7438 GB, free: 87.96 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03921/1.783, allocations: 7.831 MB / 0.7515 GB, free: 85.29 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04505/1.829, allocations: 18.84 MB / 0.7699 GB, free: 70.07 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.562e-05/1.829, allocations: 60.56 kB / 0.7699 GB, free: 70 MB / 490.7 MB Notification: Performance of pre-optimization done (n=281): time 7.023e-06/1.829, allocations: 0 / 0.7699 GB, free: 70 MB / 490.7 MB Notification: Performance of matching and sorting (n=362): time 0.2911/2.12, allocations: 47.65 MB / 0.8165 GB, free: 22.18 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/2.12, allocations: 265.8 kB / 0.8167 GB, free: 21.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01363/2.134, allocations: 6.571 MB / 0.8231 GB, free: 15.29 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009334/2.135, allocations: 81.7 kB / 0.8232 GB, free: 15.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003826/2.138, allocations: 4.539 MB / 0.8276 GB, free: 10.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002212/2.141, allocations: 1.335 MB / 0.8289 GB, free: 9.344 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001416/2.142, allocations: 188 kB / 0.8291 GB, free: 9.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006559/2.143, allocations: 0.6993 MB / 0.8298 GB, free: 8.449 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009737/2.153, allocations: 3.848 MB / 0.8336 GB, free: 4.594 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01487/2.168, allocations: 9.043 MB / 0.8424 GB, free: 8.977 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01554/2.183, allocations: 5.707 MB / 0.848 GB, free: 3.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001792/2.183, allocations: 55.95 kB / 0.848 GB, free: 3.195 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.06112/2.244, allocations: 16.07 MB / 0.8637 GB, free: 3.086 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000168/2.245, allocations: 84 kB / 0.8638 GB, free: 3.004 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003058/2.245, allocations: 184 kB / 0.864 GB, free: 2.824 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3694/2.614, allocations: 4.131 MB / 0.868 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01346/2.628, allocations: 2.043 MB / 0.87 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05785/2.686, allocations: 22.76 MB / 0.8922 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01064/2.697, allocations: 0.5029 MB / 0.8927 GB, free: 143 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002035/2.699, allocations: 0.5232 MB / 0.8932 GB, free: 143 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * 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 (1080): * Single equations (assignments): 1075 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008663/2.707, allocations: 3.128 MB / 0.8963 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001895/2.709, allocations: 0.575 MB / 0.8968 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04066/2.75, allocations: 9.791 MB / 0.9064 GB, free: 138.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.879e-05/2.75, allocations: 38.06 kB / 0.9064 GB, free: 138.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-05/2.75, allocations: 21.22 kB / 0.9065 GB, free: 138.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-05/2.75, allocations: 17.39 kB / 0.9065 GB, free: 138.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.072/2.822, allocations: 19.51 MB / 0.9255 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.844e-05/2.822, allocations: 3.938 kB / 0.9255 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005212/2.828, allocations: 0.5225 MB / 0.9261 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0236/2.851, allocations: 3.717 MB / 0.9297 GB, free: 131 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001039/2.852, allocations: 64.53 kB / 0.9297 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05177/2.904, allocations: 20.68 MB / 0.9499 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/2.904, allocations: 0 / 0.9499 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05149/2.956, allocations: 14.49 MB / 0.9641 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004576/2.96, allocations: 1.158 MB / 0.9652 GB, free: 96.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001786/2.962, allocations: 56 kB / 0.9653 GB, free: 96.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005989/2.968, allocations: 213.2 kB / 0.9655 GB, free: 95.99 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001625/2.97, allocations: 221.7 kB / 0.9657 GB, free: 95.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004752/2.97, allocations: 95.98 kB / 0.9658 GB, free: 95.68 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009136/2.98, allocations: 4.175 MB / 0.9699 GB, free: 91.51 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.81e-07/2.98, allocations: 0 / 0.9699 GB, free: 91.51 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01162/2.991, allocations: 1.868 MB / 0.9717 GB, free: 89.65 MB / 0.5105 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 (262): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001375/2.993, allocations: 241.7 kB / 0.9719 GB, free: 89.43 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0223/3.015, allocations: 9.805 MB / 0.9815 GB, free: 79.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/3.015, allocations: 0 / 0.9815 GB, free: 79.66 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009332/3.024, allocations: 3.885 MB / 0.9853 GB, free: 75.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005815/3.03, allocations: 0.7251 MB / 0.986 GB, free: 75.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04276/3.073, allocations: 19.23 MB / 1.005 GB, free: 55.89 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008694/3.082, allocations: 5.011 MB / 1.01 GB, free: 50.85 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00271/3.085, allocations: 455.4 kB / 1.01 GB, free: 50.41 MB / 0.5105 GB Notification: Performance of SimCode: time 1.273e-06/3.085, allocations: 0 / 1.01 GB, free: 50.41 MB / 0.5105 GB Notification: Performance of Templates: time 0.6264/3.711, allocations: 146.4 MB / 1.153 GB, free: 76.86 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches