Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.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.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009358/0.0009358, allocations: 96.67 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009586/0.0009587, allocations: 203.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.2 MB / 245.9 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.1994/0.1994, allocations: 45.92 MB / 344 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002927/0.0002928, allocations: 7.984 kB / 417.9 MB, free: 20.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.17, allocations: 63.46 MB / 481.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.0424/0.2124, allocations: 36.63 MB / 0.5059 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.367/0.5795, allocations: 9.141 MB / 0.5148 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009694/0.5892, allocations: 181 kB / 0.515 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00833/0.5976, allocations: 1.792 MB / 0.5167 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02405/0.6217, allocations: 5.33 MB / 0.5219 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003702/0.6254, allocations: 0.6597 MB / 0.5226 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006501/0.6319, allocations: 2.573 MB / 0.5251 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006564/0.6385, allocations: 4.119 MB / 0.5291 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.6409, allocations: 1.068 MB / 0.5302 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002173/0.6431, allocations: 1.511 MB / 0.5316 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005334/0.6436, allocations: 154.7 kB / 0.5318 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00178/0.6454, allocations: 0.689 MB / 0.5325 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001572/0.647, allocations: 1.601 MB / 0.534 GB, free: 5.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.6481, allocations: 0.8282 MB / 0.5348 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005087/0.6532, allocations: 5.216 MB / 0.5399 GB, free: 2.984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.6532, allocations: 0 / 0.5399 GB, free: 2.984 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.6532, allocations: 0 / 0.5399 GB, free: 2.984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001874/0.6534, allocations: 0 / 0.5399 GB, free: 2.984 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.007742/0.6611, allocations: 4.031 MB / 0.5439 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.6612, allocations: 10.16 kB / 0.5439 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008585/0.6698, allocations: 2.311 MB / 0.5461 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006751/0.6766, allocations: 2.487 MB / 0.5485 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002206/0.6768, allocations: 258.5 kB / 0.5488 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001221/0.6781, allocations: 323.6 kB / 0.5491 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01992/0.698, allocations: 10.33 MB / 0.5592 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001578/0.6982, allocations: 43.59 kB / 0.5592 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005416/0.6988, allocations: 161.7 kB / 0.5594 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003058/0.7018, allocations: 1.908 MB / 0.5613 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01937/0.7212, allocations: 8.274 MB / 0.5693 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06085/0.7821, allocations: 39.54 MB / 0.6079 GB, free: 1.801 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009349/0.7915, allocations: 3.321 MB / 0.6112 GB, free: 14.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01054/0.8021, allocations: 6.061 MB / 0.6171 GB, free: 7.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.023e-05/0.8022, allocations: 51.5 kB / 0.6172 GB, free: 7.852 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 5.44e-06/0.8022, allocations: 0 / 0.6172 GB, free: 7.852 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02604/0.8283, allocations: 9.816 MB / 0.6267 GB, free: 13.88 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002726/0.8286, allocations: 149.5 kB / 0.6269 GB, free: 13.71 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00689/0.8355, allocations: 4.263 MB / 0.631 GB, free: 9.422 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003124/0.8359, allocations: 49.7 kB / 0.6311 GB, free: 9.367 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002713/0.8386, allocations: 3.18 MB / 0.6342 GB, free: 6.203 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008908/0.8395, allocations: 0.6339 MB / 0.6348 GB, free: 5.574 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.8397, allocations: 123.6 kB / 0.6349 GB, free: 5.457 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003961/0.8401, allocations: 0.5583 MB / 0.6355 GB, free: 4.891 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002766/0.8429, allocations: 1.628 MB / 0.6371 GB, free: 3.258 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00559/0.8485, allocations: 5.454 MB / 0.6424 GB, free: 11.87 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004492/0.853, allocations: 2.926 MB / 0.6453 GB, free: 8.941 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.461e-05/0.8531, allocations: 40 kB / 0.6453 GB, free: 8.902 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01257/0.8657, allocations: 6.83 MB / 0.652 GB, free: 2.066 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.8658, allocations: 68 kB / 0.652 GB, free: 2.004 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001764/0.866, allocations: 144 kB / 0.6522 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002082/0.8662, allocations: 200 kB / 0.6524 GB, free: 1.668 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004565/0.8708, allocations: 1.431 MB / 0.6537 GB, free: 240 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002696/0.8711, allocations: 272.2 kB / 0.654 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004708/0.8758, allocations: 299.6 kB / 0.6543 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006507/0.8764, allocations: 376 kB / 0.6547 GB, free: 15.31 MB / 0.4981 GB 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 (767): * Single equations (assignments): 764 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004054/0.8805, allocations: 2.036 MB / 0.6566 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007641/0.8813, allocations: 359.3 kB / 0.657 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008584/0.8821, allocations: 418.7 kB / 0.6574 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.073e-05/0.8822, allocations: 20 kB / 0.6574 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/0.8822, allocations: 0 / 0.6574 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.8822, allocations: 7.969 kB / 0.6574 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/0.8939, allocations: 5.86 MB / 0.6631 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.693e-05/0.894, allocations: 20 kB / 0.6632 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.895, allocations: 281.2 kB / 0.6634 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-05/0.895, allocations: 31.94 kB / 0.6635 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.942e-05/0.8951, allocations: 54.72 kB / 0.6635 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.654e-05/0.8952, allocations: 32.39 kB / 0.6635 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-05/0.8952, allocations: 32.34 kB / 0.6636 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005354/0.9006, allocations: 5.32 MB / 0.6688 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001674/0.9023, allocations: 424.4 kB / 0.6692 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001029/0.9033, allocations: 51.98 kB / 0.6692 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00179/0.9051, allocations: 75.89 kB / 0.6693 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.9053, allocations: 155.4 kB / 0.6694 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.9055, allocations: 66.48 kB / 0.6695 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006462/0.9119, allocations: 2.676 MB / 0.6721 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.21e-07/0.912, allocations: 0 / 0.6721 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006774/0.9187, allocations: 0.9101 MB / 0.673 GB, free: 11.38 MB / 0.5137 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008144/0.9196, allocations: 207.2 kB / 0.6732 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008215/0.9278, allocations: 3.749 MB / 0.6769 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.036e-05/0.9279, allocations: 4 kB / 0.6769 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.9294, allocations: 0.7567 MB / 0.6776 GB, free: 6.703 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003134/0.9326, allocations: 437.6 kB / 0.678 GB, free: 6.273 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02279/0.9554, allocations: 10.39 MB / 0.6882 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006502/0.9619, allocations: 3.259 MB / 0.6913 GB, free: 8.32 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005631/0.9676, allocations: 1.818 MB / 0.6931 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/0.9687, allocations: 247.4 kB / 0.6934 GB, free: 6.254 MB / 0.5294 GB Notification: Performance of SimCode: time 7.42e-07/0.9687, allocations: 0 / 0.6934 GB, free: 6.254 MB / 0.5294 GB Notification: Performance of Templates: time 0.3188/1.288, allocations: 27.36 MB / 0.7201 GB, free: 182.2 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches