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.001286/0.001285, allocations: 201 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008009/0.0008008, allocations: 98.11 kB / 297.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4292/0.4292, allocations: 44.82 MB / 394.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002963/0.0002964, allocations: 8 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4344/0.4347, allocations: 62.96 MB / 0.5184 GB, free: 37.32 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.5833, allocations: 107.4 MB / 0.6233 GB, free: 13.82 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5837, allocations: 83.94 kB / 0.6234 GB, free: 13.74 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5141/1.098, allocations: 87.6 MB / 0.709 GB, free: 98.98 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.836e-06/1.098, allocations: 0 / 0.709 GB, free: 98.98 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004133/1.098, allocations: 83.56 kB / 0.709 GB, free: 98.98 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.01563/1.114, allocations: 4.145 MB / 0.7131 GB, free: 97.07 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/1.114, allocations: 8.188 kB / 0.7131 GB, free: 97.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01192/1.126, allocations: 2.387 MB / 0.7154 GB, free: 96.76 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01032/1.136, allocations: 3.534 MB / 0.7189 GB, free: 96.11 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008794/1.137, allocations: 333.2 kB / 0.7192 GB, free: 96.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003164/1.14, allocations: 444.7 kB / 0.7196 GB, free: 96.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02581/1.166, allocations: 10.66 MB / 0.73 GB, free: 91.25 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003713/1.167, allocations: 61.47 kB / 0.7301 GB, free: 91.21 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001936/1.169, allocations: 218.6 kB / 0.7303 GB, free: 91.09 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001682/1.17, allocations: 1.041 MB / 0.7313 GB, free: 90.91 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01885/1.189, allocations: 8.319 MB / 0.7394 GB, free: 88.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04961/1.239, allocations: 48.01 MB / 0.7863 GB, free: 50.91 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007147/1.246, allocations: 3.214 MB / 0.7895 GB, free: 49.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001506/1.248, allocations: 1.043 MB / 0.7905 GB, free: 48.54 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008201/1.256, allocations: 5.932 MB / 0.7963 GB, free: 42.96 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.479e-05/1.256, allocations: 47.5 kB / 0.7963 GB, free: 42.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 4.088e-06/1.256, allocations: 0 / 0.7963 GB, free: 42.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.02335/1.279, allocations: 9.418 MB / 0.8055 GB, free: 33.38 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/1.279, allocations: 196.9 kB / 0.8057 GB, free: 33.14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007778/1.287, allocations: 4.083 MB / 0.8097 GB, free: 29.04 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002643/1.287, allocations: 45.98 kB / 0.8097 GB, free: 28.98 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001584/1.289, allocations: 3.182 MB / 0.8128 GB, free: 25.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005225/1.29, allocations: 0.6363 MB / 0.8135 GB, free: 25.17 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/1.29, allocations: 123.9 kB / 0.8136 GB, free: 25.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000238/1.29, allocations: 0.5504 MB / 0.8141 GB, free: 24.49 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/1.292, allocations: 1.659 MB / 0.8157 GB, free: 22.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003745/1.296, allocations: 5.506 MB / 0.8211 GB, free: 15.39 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007027/1.303, allocations: 7.754 MB / 0.8287 GB, free: 5.73 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001/1.303, allocations: 40 kB / 0.8287 GB, free: 5.691 MB / 490.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01157/1.315, allocations: 6.887 MB / 0.8355 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/1.315, allocations: 64 kB / 0.8355 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002246/1.315, allocations: 136 kB / 0.8356 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002117/1.316, allocations: 180 kB / 0.8358 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004516/1.32, allocations: 1.447 MB / 0.8372 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002732/1.32, allocations: 266.9 kB / 0.8375 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004909/1.325, allocations: 386.8 kB / 0.8379 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009106/1.326, allocations: 375.9 kB / 0.8382 GB, free: 11.98 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * 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 (763): * Single equations (assignments): 760 * 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.005048/1.331, allocations: 2.029 MB / 0.8402 GB, free: 9.945 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009531/1.332, allocations: 351.4 kB / 0.8405 GB, free: 9.598 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/1.335, allocations: 1.337 MB / 0.8418 GB, free: 8.246 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.832e-05/1.335, allocations: 20 kB / 0.8419 GB, free: 8.227 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/1.335, allocations: 4 kB / 0.8419 GB, free: 8.223 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/1.335, allocations: 7.969 kB / 0.8419 GB, free: 8.215 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/1.346, allocations: 5.859 MB / 0.8476 GB, free: 2.078 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-05/1.346, allocations: 20 kB / 0.8476 GB, free: 2.059 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009813/1.347, allocations: 275.5 kB / 0.8479 GB, free: 1.789 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-05/1.347, allocations: 24 kB / 0.8479 GB, free: 1.766 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/1.348, allocations: 59.92 kB / 0.8479 GB, free: 1.707 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.64e-05/1.348, allocations: 35.86 kB / 0.848 GB, free: 1.672 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.107e-05/1.348, allocations: 27.88 kB / 0.848 GB, free: 1.645 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004321/1.352, allocations: 3.267 MB / 0.8512 GB, free: 14.12 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/1.353, allocations: 428.4 kB / 0.8516 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003236/1.353, allocations: 55.44 kB / 0.8517 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/1.355, allocations: 95.92 kB / 0.8518 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/1.355, allocations: 147.4 kB / 0.8519 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/1.355, allocations: 67.94 kB / 0.852 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00602/1.361, allocations: 2.547 MB / 0.8544 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.9e-07/1.361, allocations: 0 / 0.8544 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007102/1.368, allocations: 0.914 MB / 0.8553 GB, free: 9.852 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * 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 (146): * Single equations (assignments): 143 * 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.0005373/1.369, allocations: 210.2 kB / 0.8555 GB, free: 9.641 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007421/1.376, allocations: 3.768 MB / 0.8592 GB, free: 5.906 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/1.376, allocations: 0.75 kB / 0.8592 GB, free: 5.906 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001214/1.377, allocations: 0.741 MB / 0.8599 GB, free: 5.168 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0115/1.389, allocations: 466.1 kB / 0.8604 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02046/1.409, allocations: 10.45 MB / 0.8706 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0041/1.414, allocations: 3.169 MB / 0.8737 GB, free: 6.82 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005469/1.419, allocations: 1.824 MB / 0.8755 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005981/1.42, allocations: 239.4 kB / 0.8757 GB, free: 4.754 MB / 0.5261 GB Notification: Performance of SimCode: time 6.61e-07/1.42, allocations: 0 / 0.8757 GB, free: 4.754 MB / 0.5261 GB Notification: Performance of Templates: time 0.3288/1.749, allocations: 27.22 MB / 0.9023 GB, free: 126.4 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/jenkins1/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