Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00109/0.00109, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2081/0.2081, allocations: 46.11 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 83.86 kB / 419 MB, free: 18.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1265, allocations: 62.44 MB / 481.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.0116/0.1382, allocations: 10.34 MB / 491.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008065/0.1463, allocations: 3.891 MB / 495.7 MB, free: 6.215 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/0.1475, allocations: 59.88 kB / 495.7 MB, free: 6.156 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003749/0.1514, allocations: 2.063 MB / 497.8 MB, free: 4.086 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003923/0.1553, allocations: 1.665 MB / 499.5 MB, free: 2.414 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.1569, allocations: 0.7095 MB / 0.4885 GB, free: 1.703 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005473/0.1624, allocations: 4.001 MB / 0.4924 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002752/0.1651, allocations: 2.594 MB / 0.4949 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001695/0.1668, allocations: 1.304 MB / 0.4962 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002014/0.1689, allocations: 1.846 MB / 0.498 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003923/0.1693, allocations: 268 kB / 0.4982 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001836/0.1711, allocations: 1.17 MB / 0.4994 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.1724, allocations: 1.644 MB / 0.501 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001736/0.1742, allocations: 1.883 MB / 0.5028 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2484/0.4226, allocations: 6.15 MB / 0.5088 GB, free: 20.76 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.4227, allocations: 1.219 kB / 0.5088 GB, free: 20.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.4227, allocations: 1.156 kB / 0.5088 GB, free: 20.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001849/0.4229, allocations: 0.5625 kB / 0.5088 GB, free: 20.76 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.009036/0.4319, allocations: 4.203 MB / 0.5129 GB, free: 19.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.432, allocations: 11 kB / 0.5129 GB, free: 19.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01432/0.4463, allocations: 2.432 MB / 0.5153 GB, free: 18.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007487/0.4538, allocations: 2.406 MB / 0.5177 GB, free: 18.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.4541, allocations: 194.7 kB / 0.5178 GB, free: 18.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/0.4552, allocations: 278 kB / 0.5181 GB, free: 18.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01498/0.4702, allocations: 8.587 MB / 0.5265 GB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/0.4704, allocations: 39 kB / 0.5265 GB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003683/0.4707, allocations: 131.1 kB / 0.5267 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002628/0.4734, allocations: 1.737 MB / 0.5284 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01317/0.4865, allocations: 7.291 MB / 0.5355 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04194/0.5285, allocations: 34.02 MB / 0.5687 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008578/0.5371, allocations: 3.495 MB / 0.5721 GB, free: 7.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002178/0.5394, allocations: 1.713 MB / 0.5738 GB, free: 5.797 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01232/0.5517, allocations: 7.523 MB / 0.5811 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.5518, allocations: 52 kB / 0.5812 GB, free: 13.99 MB / 430.1 MB Notification: Performance of pre-optimization done (n=151): time 4.719e-06/0.5518, allocations: 0 / 0.5812 GB, free: 13.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=188): time 0.06411/0.6159, allocations: 19.61 MB / 0.6003 GB, free: 10.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.616, allocations: 201.2 kB / 0.6005 GB, free: 10.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006733/0.6228, allocations: 3.73 MB / 0.6042 GB, free: 6.352 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003803/0.6232, allocations: 52.2 kB / 0.6042 GB, free: 6.297 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002147/0.6253, allocations: 2.795 MB / 0.6069 GB, free: 3.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009656/0.6263, allocations: 0.7267 MB / 0.6076 GB, free: 2.805 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002607/0.6289, allocations: 1.205 MB / 0.6088 GB, free: 1.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.009e-05/0.629, allocations: 301.1 kB / 0.6091 GB, free: 1.293 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00366/0.6327, allocations: 2.21 MB / 0.6113 GB, free: 15.08 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005861/0.6386, allocations: 5.769 MB / 0.6169 GB, free: 7.594 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009758/0.6484, allocations: 8.61 MB / 0.6253 GB, free: 13.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001041/0.6485, allocations: 39.84 kB / 0.6254 GB, free: 13.71 MB / 478.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01954/0.668, allocations: 9.191 MB / 0.6343 GB, free: 4.742 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001757/0.6683, allocations: 59.98 kB / 0.6344 GB, free: 4.684 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002394/0.6685, allocations: 128 kB / 0.6345 GB, free: 4.559 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005597/0.6741, allocations: 1.657 MB / 0.6361 GB, free: 2.902 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00443/0.6786, allocations: 1.326 MB / 0.6374 GB, free: 1.574 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01444/0.693, allocations: 9.929 MB / 0.6471 GB, free: 7.512 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004686/0.6978, allocations: 307.6 kB / 0.6474 GB, free: 7.211 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001114/0.6989, allocations: 367.9 kB / 0.6478 GB, free: 6.852 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005172/0.7041, allocations: 1.892 MB / 0.6496 GB, free: 4.945 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/0.7052, allocations: 331.7 kB / 0.6499 GB, free: 4.617 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/0.7155, allocations: 4.14 MB / 0.654 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-05/0.7156, allocations: 23.94 kB / 0.654 GB, free: 448 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.99e-05/0.7157, allocations: 12 kB / 0.654 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.66e-05/0.7157, allocations: 7.969 kB / 0.654 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0212/0.7369, allocations: 8.514 MB / 0.6623 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.737, allocations: 0 / 0.6623 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/0.7383, allocations: 259.6 kB / 0.6626 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005145/0.7435, allocations: 1.427 MB / 0.664 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000272/0.7438, allocations: 35.98 kB / 0.664 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0137/0.7575, allocations: 9.213 MB / 0.673 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.7575, allocations: 3.984 kB / 0.673 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01351/0.771, allocations: 6.743 MB / 0.6796 GB, free: 6.043 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001467/0.7725, allocations: 372.8 kB / 0.6799 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001133/0.7737, allocations: 35.06 kB / 0.68 GB, free: 5.625 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002146/0.7759, allocations: 95.94 kB / 0.6801 GB, free: 5.531 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000464/0.7763, allocations: 105.2 kB / 0.6802 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001837/0.7765, allocations: 55.98 kB / 0.6802 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005142/0.7817, allocations: 2.319 MB / 0.6825 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.91e-07/0.7817, allocations: 0 / 0.6825 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005369/0.7871, allocations: 0.9766 MB / 0.6834 GB, free: 2.094 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0004156/0.7875, allocations: 162.9 kB / 0.6836 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008266/0.7958, allocations: 5.434 MB / 0.6889 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.7958, allocations: 4 kB / 0.6889 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002467/0.7983, allocations: 1.799 MB / 0.6907 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002408/0.8007, allocations: 382.5 kB / 0.691 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/0.8143, allocations: 8.561 MB / 0.6994 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2258/1.04, allocations: 2.948 MB / 0.7023 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005023/1.045, allocations: 1.817 MB / 0.704 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006999/1.046, allocations: 225 kB / 0.7043 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.252e-06/1.046, allocations: 1.781 kB / 0.7043 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.05564/1.102, allocations: 34.11 MB / 0.7376 GB, free: 163.9 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches