Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.00104/0.00104, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.365/1.365, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.2181/0.2181, allocations: 44.18 MB / 337.3 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.84 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1136, allocations: 60.82 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01165/0.1253, allocations: 11.4 MB / 481.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008608/0.134, allocations: 4.042 MB / 485.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002136/0.1362, allocations: 71.75 kB / 485.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004856/0.141, allocations: 2.484 MB / 487.9 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004956/0.1461, allocations: 1.871 MB / 489.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001788/0.1479, allocations: 0.7799 MB / 490.6 MB, free: 9.656 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005865/0.1537, allocations: 4.424 MB / 495 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003963/0.1577, allocations: 3.339 MB / 498.3 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002512/0.1603, allocations: 1.554 MB / 499.9 MB, free: 284 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003385/0.1637, allocations: 2.22 MB / 0.4903 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001559/0.1653, allocations: 332 kB / 0.4907 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003316/0.1686, allocations: 0.987 MB / 0.4916 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002373/0.171, allocations: 1.944 MB / 0.4935 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002816/0.1739, allocations: 2.241 MB / 0.4957 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006701/0.1806, allocations: 6.631 MB / 0.5022 GB, free: 1.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1806, allocations: 0 / 0.5022 GB, free: 1.883 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1806, allocations: 0 / 0.5022 GB, free: 1.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002109/0.1808, allocations: 0 / 0.5022 GB, free: 1.883 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.242/0.4228, allocations: 4.831 MB / 0.5069 GB, free: 46.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.825e-05/0.4229, allocations: 10.34 kB / 0.5069 GB, free: 46.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009108/0.4321, allocations: 1.943 MB / 0.5088 GB, free: 46.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006554/0.4386, allocations: 2.345 MB / 0.5111 GB, free: 45.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003583/0.4391, allocations: 255.6 kB / 0.5113 GB, free: 44.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001501/0.4406, allocations: 328.9 kB / 0.5116 GB, free: 44.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02235/0.4629, allocations: 10.2 MB / 0.5216 GB, free: 39.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001539/0.4631, allocations: 46.56 kB / 0.5217 GB, free: 39.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004877/0.4636, allocations: 161.5 kB / 0.5218 GB, free: 39.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002524/0.4662, allocations: 1.905 MB / 0.5237 GB, free: 38.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01559/0.4818, allocations: 8.149 MB / 0.5316 GB, free: 30.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04599/0.5278, allocations: 39.41 MB / 0.5701 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00857/0.5364, allocations: 3.273 MB / 0.5733 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001825/0.5383, allocations: 1.046 MB / 0.5743 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009888/0.5482, allocations: 5.911 MB / 0.5801 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.353e-05/0.5483, allocations: 55.5 kB / 0.5802 GB, free: 11.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 5.17e-06/0.5483, allocations: 0 / 0.5802 GB, free: 11.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.02431/0.5726, allocations: 9.432 MB / 0.5894 GB, free: 2.027 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.288e-05/0.5728, allocations: 145.5 kB / 0.5895 GB, free: 1.855 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006026/0.5788, allocations: 4.051 MB / 0.5935 GB, free: 13.78 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002718/0.5792, allocations: 49.7 kB / 0.5935 GB, free: 13.72 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002561/0.5817, allocations: 3.179 MB / 0.5966 GB, free: 10.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008277/0.5826, allocations: 0.6368 MB / 0.5972 GB, free: 9.852 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001556/0.5841, allocations: 1.214 MB / 0.5984 GB, free: 8.625 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.5843, allocations: 301.1 kB / 0.5987 GB, free: 8.328 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00267/0.5869, allocations: 1.655 MB / 0.6003 GB, free: 6.668 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005497/0.5924, allocations: 5.509 MB / 0.6057 GB, free: 15.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009368/0.6018, allocations: 7.791 MB / 0.6133 GB, free: 5.516 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001297/0.602, allocations: 43.94 kB / 0.6134 GB, free: 5.473 MB / 446.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01465/0.6167, allocations: 6.91 MB / 0.6201 GB, free: 14.56 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001758/0.6169, allocations: 64 kB / 0.6202 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002862/0.6172, allocations: 139.9 kB / 0.6203 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002382/0.6175, allocations: 184 kB / 0.6205 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004979/0.6225, allocations: 1.427 MB / 0.6219 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003592/0.6229, allocations: 274.9 kB / 0.6221 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005455/0.6283, allocations: 293 kB / 0.6224 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/0.6297, allocations: 376 kB / 0.6228 GB, free: 11.83 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (775): * Single equations (assignments): 772 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004885/0.6346, allocations: 2.041 MB / 0.6248 GB, free: 9.773 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/0.6356, allocations: 347.5 kB / 0.6251 GB, free: 9.43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003199/0.6388, allocations: 1.341 MB / 0.6264 GB, free: 8.078 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-05/0.6389, allocations: 16 kB / 0.6264 GB, free: 8.062 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.6389, allocations: 0 / 0.6264 GB, free: 8.062 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/0.639, allocations: 7.984 kB / 0.6264 GB, free: 8.055 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/0.6528, allocations: 5.825 MB / 0.6321 GB, free: 1.914 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.015e-05/0.6529, allocations: 16 kB / 0.6321 GB, free: 1.898 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.6541, allocations: 279.5 kB / 0.6324 GB, free: 1.625 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.402e-05/0.6541, allocations: 31.94 kB / 0.6324 GB, free: 1.594 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.6543, allocations: 58.03 kB / 0.6325 GB, free: 1.539 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.362e-05/0.6543, allocations: 36.42 kB / 0.6325 GB, free: 1.504 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.776e-05/0.6544, allocations: 27.94 kB / 0.6325 GB, free: 1.477 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004889/0.6593, allocations: 3.267 MB / 0.6357 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/0.6606, allocations: 420.5 kB / 0.6361 GB, free: 13.52 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008156/0.6614, allocations: 51.92 kB / 0.6362 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001768/0.6632, allocations: 60.05 kB / 0.6362 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.6634, allocations: 151.4 kB / 0.6364 GB, free: 13.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.6636, allocations: 68 kB / 0.6365 GB, free: 13.19 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006451/0.67, allocations: 2.507 MB / 0.6389 GB, free: 10.67 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.6701, allocations: 0 / 0.6389 GB, free: 10.67 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006399/0.6765, allocations: 0.8997 MB / 0.6398 GB, free: 9.777 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * 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 (145): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000653/0.6771, allocations: 212 kB / 0.64 GB, free: 9.574 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007848/0.685, allocations: 3.985 MB / 0.6439 GB, free: 5.645 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-05/0.6851, allocations: 0 / 0.6439 GB, free: 5.645 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001414/0.6865, allocations: 0.7574 MB / 0.6446 GB, free: 4.891 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00419/0.6907, allocations: 467.7 kB / 0.6451 GB, free: 4.438 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01978/0.7105, allocations: 9.258 MB / 0.6541 GB, free: 10.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0053/0.7159, allocations: 3.177 MB / 0.6572 GB, free: 7.695 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009473/0.7168, allocations: 287.4 kB / 0.6575 GB, free: 7.414 MB / 494.1 MB Notification: Performance of SimCode: time 9.22e-07/0.7168, allocations: 0 / 0.6575 GB, free: 7.414 MB / 494.1 MB Notification: Performance of Templates: time 0.3074/1.024, allocations: 53.12 MB / 0.7094 GB, free: 151.3 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches