Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009753/0.0009751, allocations: 93.38 kB / 18 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 177.3 kB / 18.91 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 223.3 MB / 243 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.197/0.197, allocations: 44.25 MB / 338.3 MB, free: 2.422 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003355, allocations: 8.562 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.108, allocations: 61.92 MB / 472.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03043/0.1385, allocations: 33.83 MB / 0.4949 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0174/0.156, allocations: 7.87 MB / 0.5026 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006597/0.1626, allocations: 151.6 kB / 0.5027 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00156/0.1642, allocations: 386.1 kB / 0.5031 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004684/0.1689, allocations: 1.604 MB / 0.5046 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001917/0.1709, allocations: 0.6319 MB / 0.5053 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2463/0.4172, allocations: 5.676 MB / 0.5108 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006866/0.4241, allocations: 3.315 MB / 0.514 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003111/0.4273, allocations: 1.028 MB / 0.515 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00391/0.4312, allocations: 1.805 MB / 0.5168 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001036/0.4323, allocations: 123.5 kB / 0.5169 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003084/0.4354, allocations: 1.114 MB / 0.518 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002877/0.4383, allocations: 1.528 MB / 0.5195 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004207/0.4425, allocations: 1.753 MB / 0.5212 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00688/0.4494, allocations: 4.695 MB / 0.5258 GB, free: 7.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.4495, allocations: 0 / 0.5258 GB, free: 7.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.746e-06/0.4495, allocations: 4 kB / 0.5258 GB, free: 7.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002643/0.4498, allocations: 0 / 0.5258 GB, free: 7.914 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.008894/0.4587, allocations: 3.488 MB / 0.5292 GB, free: 5.699 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.4587, allocations: 13.3 kB / 0.5292 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01723/0.476, allocations: 2.49 MB / 0.5316 GB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006058/0.4821, allocations: 2.394 MB / 0.534 GB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002481/0.4824, allocations: 192.6 kB / 0.5342 GB, free: 3.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001483/0.4839, allocations: 279.8 kB / 0.5344 GB, free: 3.676 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01608/0.5, allocations: 8.596 MB / 0.5428 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001994/0.5002, allocations: 42.83 kB / 0.5429 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001008/0.5012, allocations: 129.8 kB / 0.543 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003226/0.5045, allocations: 1.74 MB / 0.5447 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01692/0.5214, allocations: 7.307 MB / 0.5518 GB, free: 5.328 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0452/0.5667, allocations: 34.19 MB / 0.5852 GB, free: 2.484 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009032/0.5758, allocations: 3.534 MB / 0.5887 GB, free: 14.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002485/0.5783, allocations: 1.71 MB / 0.5903 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01181/0.5901, allocations: 7.42 MB / 0.5976 GB, free: 5.453 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.5902, allocations: 58 kB / 0.5976 GB, free: 5.391 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 4.589e-06/0.5902, allocations: 0 / 0.5976 GB, free: 5.391 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06812/0.6583, allocations: 19.95 MB / 0.6171 GB, free: 1.344 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.6585, allocations: 209.2 kB / 0.6173 GB, free: 1.098 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005794/0.6643, allocations: 3.746 MB / 0.621 GB, free: 13.36 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004111/0.6648, allocations: 49.7 kB / 0.621 GB, free: 13.31 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002113/0.6669, allocations: 2.804 MB / 0.6238 GB, free: 10.51 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009492/0.6679, allocations: 0.7198 MB / 0.6245 GB, free: 9.801 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007925/0.6687, allocations: 0.5032 MB / 0.625 GB, free: 9.289 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.6688, allocations: 305 kB / 0.6253 GB, free: 8.992 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003449/0.6722, allocations: 2.206 MB / 0.6274 GB, free: 6.781 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006143/0.6784, allocations: 5.766 MB / 0.633 GB, free: 15.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01057/0.689, allocations: 8.597 MB / 0.6414 GB, free: 5.457 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001106/0.6892, allocations: 36 kB / 0.6415 GB, free: 5.422 MB / 494.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02072/0.7099, allocations: 9.217 MB / 0.6505 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.71, allocations: 61.72 kB / 0.6505 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001506/0.7102, allocations: 128.1 kB / 0.6507 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006399/0.7166, allocations: 1.693 MB / 0.6523 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004696/0.7213, allocations: 1.322 MB / 0.6536 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01457/0.7359, allocations: 9.305 MB / 0.6627 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00438/0.7403, allocations: 307.5 kB / 0.663 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009256/0.7413, allocations: 367.9 kB / 0.6633 GB, free: 15.16 MB / 0.5137 GB 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.003756/0.7451, allocations: 1.903 MB / 0.6652 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006758/0.7458, allocations: 327.8 kB / 0.6655 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/0.7558, allocations: 4.176 MB / 0.6696 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.236e-05/0.7559, allocations: 23.05 kB / 0.6696 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/0.7559, allocations: 8 kB / 0.6696 GB, free: 8.703 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.463e-05/0.756, allocations: 15.91 kB / 0.6696 GB, free: 8.688 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01842/0.7744, allocations: 8.565 MB / 0.678 GB, free: 96 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.809e-05/0.7745, allocations: 4 kB / 0.678 GB, free: 92 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/0.7759, allocations: 251.6 kB / 0.6782 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006071/0.782, allocations: 1.468 MB / 0.6797 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003382/0.7824, allocations: 31.98 kB / 0.6797 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01405/0.7965, allocations: 8.62 MB / 0.6881 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.7965, allocations: 0 / 0.6881 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01397/0.8105, allocations: 6.754 MB / 0.6947 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.8116, allocations: 376.8 kB / 0.6951 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009306/0.8126, allocations: 28 kB / 0.6951 GB, free: 14.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002053/0.8146, allocations: 89.92 kB / 0.6952 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004841/0.8151, allocations: 121.2 kB / 0.6953 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000218/0.8154, allocations: 55.92 kB / 0.6953 GB, free: 14.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004885/0.8203, allocations: 2.32 MB / 0.6976 GB, free: 11.83 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8203, allocations: 0 / 0.6976 GB, free: 11.83 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006104/0.8264, allocations: 1 MB / 0.6986 GB, free: 10.83 MB / 0.545 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.0006684/0.8271, allocations: 168.3 kB / 0.6987 GB, free: 10.66 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009674/0.8368, allocations: 5.407 MB / 0.704 GB, free: 5.277 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.8368, allocations: 192 / 0.704 GB, free: 5.277 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003072/0.8399, allocations: 1.819 MB / 0.7058 GB, free: 3.441 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003841/0.8438, allocations: 373.4 kB / 0.7062 GB, free: 3.078 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2256/1.069, allocations: 10.78 MB / 0.7167 GB, free: 199.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00416/1.074, allocations: 2.954 MB / 0.7196 GB, free: 198.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/1.075, allocations: 269.2 kB / 0.7198 GB, free: 198.5 MB / 0.545 GB Notification: Performance of SimCode: time 8.31e-07/1.075, allocations: 0 / 0.7198 GB, free: 198.5 MB / 0.545 GB Notification: Performance of Templates: time 0.0867/1.161, allocations: 68.58 MB / 0.7868 GB, free: 147.3 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches