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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001691/0.001691, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007899/0.0007899, allocations: 99.61 kB / 286.7 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1995/0.1995, allocations: 45.14 MB / 383.8 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.903e-05/1.884e-05, allocations: 4 kB / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.118, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4419/0.5599, allocations: 106.8 MB / 0.6086 GB, free: 12.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/0.5602, allocations: 74.03 kB / 0.6087 GB, free: 12.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.217/0.7772, allocations: 88.23 MB / 0.6948 GB, free: 11.89 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.7772, allocations: 0 / 0.6948 GB, free: 11.89 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001695/0.7774, allocations: 84 kB / 0.6949 GB, free: 11.81 MB / 490.7 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.01062/0.788, allocations: 3.967 MB / 0.6988 GB, free: 7.781 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.7881, allocations: 12.02 kB / 0.6988 GB, free: 7.77 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/0.7994, allocations: 2.451 MB / 0.7012 GB, free: 5.309 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/0.8099, allocations: 4.239 MB / 0.7053 GB, free: 1.004 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.8102, allocations: 144 kB / 0.7055 GB, free: 0.8633 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001165/0.8113, allocations: 263.9 kB / 0.7057 GB, free: 0.6055 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01106/0.8224, allocations: 6.163 MB / 0.7117 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02259/0.845, allocations: 9.451 MB / 0.721 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001864/0.8453, allocations: 59.44 kB / 0.721 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000496/0.8458, allocations: 36 kB / 0.7211 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001479/0.8473, allocations: 1.041 MB / 0.7221 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3715/1.219, allocations: 47.27 MB / 0.7683 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003197/1.222, allocations: 2.072 MB / 0.7703 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/1.223, allocations: 0.9214 MB / 0.7712 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00103/1.224, allocations: 1.201 MB / 0.7723 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/1.224, allocations: 56.19 kB / 0.7724 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=158): time 4.769e-06/1.224, allocations: 0 / 0.7724 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=170): time 0.01813/1.243, allocations: 9.056 MB / 0.7812 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.561e-05/1.243, allocations: 256.1 kB / 0.7815 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005518/1.248, allocations: 3.033 MB / 0.7845 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000257/1.249, allocations: 28.83 kB / 0.7845 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001728/1.25, allocations: 3.215 MB / 0.7876 GB, free: 99.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005234/1.251, allocations: 0.655 MB / 0.7883 GB, free: 99.04 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/1.251, allocations: 0 / 0.7883 GB, free: 99.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002455/1.251, allocations: 0.5618 MB / 0.7888 GB, free: 98.73 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/1.253, allocations: 1.499 MB / 0.7903 GB, free: 98.71 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003061/1.256, allocations: 5.431 MB / 0.7956 GB, free: 93.57 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003165/1.259, allocations: 2.857 MB / 0.7984 GB, free: 93.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.79e-05/1.259, allocations: 43.12 kB / 0.7984 GB, free: 93.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=817) (initialization): time 0.009133/1.268, allocations: 6.003 MB / 0.8043 GB, free: 93.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.608e-05/1.269, allocations: 67.5 kB / 0.8043 GB, free: 93.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/1.269, allocations: 147.6 kB / 0.8045 GB, free: 93.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001791/1.269, allocations: 207.1 kB / 0.8047 GB, free: 93.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004085/1.273, allocations: 1.494 MB / 0.8061 GB, free: 92.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001493/1.273, allocations: 284.3 kB / 0.8064 GB, free: 92.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004396/1.278, allocations: 267.9 kB / 0.8067 GB, free: 92.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004701/1.278, allocations: 387.6 kB / 0.807 GB, free: 92.82 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (793): * Single equations (assignments): 790 * 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.0006385/1.279, allocations: 464.7 kB / 0.8075 GB, free: 92.49 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000485/1.279, allocations: 321.6 kB / 0.8078 GB, free: 92.32 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/1.281, allocations: 1.253 MB / 0.809 GB, free: 92.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.801e-05/1.281, allocations: 22.92 kB / 0.809 GB, free: 92.18 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/1.281, allocations: 3.812 kB / 0.809 GB, free: 92.18 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/1.281, allocations: 6.75 kB / 0.809 GB, free: 92.18 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007761/1.289, allocations: 5.314 MB / 0.8142 GB, free: 90.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.997e-05/1.289, allocations: 19.5 kB / 0.8142 GB, free: 90.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009943/1.29, allocations: 295.8 kB / 0.8145 GB, free: 90.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.599e-05/1.29, allocations: 26.84 kB / 0.8145 GB, free: 90.73 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-05/1.29, allocations: 28.38 kB / 0.8146 GB, free: 90.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.147e-05/1.29, allocations: 39.11 kB / 0.8146 GB, free: 90.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.55e-05/1.29, allocations: 31.31 kB / 0.8146 GB, free: 90.71 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003707/1.294, allocations: 5.168 MB / 0.8197 GB, free: 86.87 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000988/1.295, allocations: 386.9 kB / 0.8201 GB, free: 86.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003238/1.295, allocations: 28.11 kB / 0.8201 GB, free: 86.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/1.296, allocations: 67.78 kB / 0.8201 GB, free: 86.58 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/1.297, allocations: 154.5 kB / 0.8203 GB, free: 86.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.555e-05/1.297, allocations: 69.78 kB / 0.8204 GB, free: 86.51 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00308/1.3, allocations: 2.002 MB / 0.8223 GB, free: 85.78 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.81e-07/1.3, allocations: 0 / 0.8223 GB, free: 85.78 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005578/1.305, allocations: 0.7889 MB / 0.8231 GB, free: 85.77 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 81 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 151 * 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.0004905/1.306, allocations: 177 kB / 0.8233 GB, free: 85.64 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00506/1.311, allocations: 3.453 MB / 0.8266 GB, free: 84.49 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.765e-05/1.311, allocations: 3.5 kB / 0.8266 GB, free: 84.49 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008601/1.312, allocations: 0.7164 MB / 0.8273 GB, free: 84.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/1.314, allocations: 370.8 kB / 0.8277 GB, free: 84.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/1.328, allocations: 7.129 MB / 0.8346 GB, free: 80.96 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002913/1.331, allocations: 3.263 MB / 0.8378 GB, free: 79.72 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004711/1.335, allocations: 1.885 MB / 0.8397 GB, free: 79.56 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005816/1.336, allocations: 238.9 kB / 0.8399 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of SimCode: time 1.603e-06/1.336, allocations: 0 / 0.8399 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of Templates: time 0.04311/1.379, allocations: 23.55 MB / 0.8629 GB, free: 67.59 MB / 0.5261 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