Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009411/0.0009411, allocations: 202.3 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 243.1 MB, free: 12.56 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007987/0.0007988, allocations: 102.1 kB / 295.1 MB, free: 4.406 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1794/0.1794, allocations: 44.84 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002739/0.000274, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.0958, allocations: 62.96 MB / 0.5153 GB, free: 5.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.2281/0.3239, allocations: 38.78 MB / 0.5532 GB, free: 9.844 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0186/0.3425, allocations: 8.779 MB / 0.5618 GB, free: 9.645 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008187/0.3508, allocations: 186.1 kB / 0.5619 GB, free: 9.625 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006251/0.357, allocations: 1.99 MB / 0.5639 GB, free: 9.188 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01658/0.3737, allocations: 6.002 MB / 0.5697 GB, free: 7.906 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002668/0.3763, allocations: 0.6687 MB / 0.5704 GB, free: 7.707 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005966/0.3823, allocations: 5.012 MB / 0.5753 GB, free: 5.996 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005767/0.3881, allocations: 4.141 MB / 0.5793 GB, free: 4.688 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002279/0.3904, allocations: 1.275 MB / 0.5806 GB, free: 4.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002403/0.3928, allocations: 2.087 MB / 0.5826 GB, free: 3.523 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005416/0.3934, allocations: 150 kB / 0.5828 GB, free: 3.523 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001615/0.395, allocations: 0.7064 MB / 0.5835 GB, free: 3.348 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001377/0.3964, allocations: 1.717 MB / 0.5851 GB, free: 2.73 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008944/0.3973, allocations: 0.8259 MB / 0.5859 GB, free: 2.531 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005123/0.4024, allocations: 5.291 MB / 0.5911 GB, free: 0 / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4025, allocations: 128 / 0.5911 GB, free: 0 / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4025, allocations: 64 / 0.5911 GB, free: 0 / 378.7 MB Notification: Performance of Transformations before backend: time 0.000169/0.4027, allocations: 4.047 kB / 0.5911 GB, free: 15.99 MB / 394.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.006956/0.4096, allocations: 4.006 MB / 0.595 GB, free: 12.49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.4097, allocations: 12.03 kB / 0.595 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006786/0.4165, allocations: 2 MB / 0.597 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004632/0.4211, allocations: 2.249 MB / 0.5992 GB, free: 8.688 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/0.4213, allocations: 249.2 kB / 0.5994 GB, free: 8.551 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005788/0.4219, allocations: 331 kB / 0.5997 GB, free: 8.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01473/0.4366, allocations: 10.19 MB / 0.6097 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.154e-05/0.4368, allocations: 47.58 kB / 0.6097 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003506/0.4371, allocations: 161.7 kB / 0.6099 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00251/0.4396, allocations: 1.908 MB / 0.6117 GB, free: 12.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0147/0.4543, allocations: 8.122 MB / 0.6197 GB, free: 3.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04205/0.4964, allocations: 39.4 MB / 0.6582 GB, free: 11.61 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007405/0.5039, allocations: 3.269 MB / 0.6614 GB, free: 8.184 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/0.5055, allocations: 1.058 MB / 0.6624 GB, free: 7.109 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007885/0.5134, allocations: 5.905 MB / 0.6682 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.5134, allocations: 47.56 kB / 0.6682 GB, free: 0.832 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 3.286e-06/0.5134, allocations: 0 / 0.6682 GB, free: 0.832 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.02328/0.5367, allocations: 9.434 MB / 0.6774 GB, free: 7.301 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.02e-05/0.5368, allocations: 141.5 kB / 0.6775 GB, free: 7.133 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006038/0.5429, allocations: 4.028 MB / 0.6815 GB, free: 3.082 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002086/0.5431, allocations: 49.7 kB / 0.6815 GB, free: 3.027 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00242/0.5456, allocations: 3.181 MB / 0.6846 GB, free: 15.86 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007459/0.5463, allocations: 0.6418 MB / 0.6853 GB, free: 15.22 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000392/0.5467, allocations: 120 kB / 0.6854 GB, free: 15.11 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004297/0.5472, allocations: 0.5584 MB / 0.6859 GB, free: 14.54 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00273/0.5499, allocations: 1.628 MB / 0.6875 GB, free: 12.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005511/0.5554, allocations: 5.493 MB / 0.6929 GB, free: 5.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004782/0.5602, allocations: 2.931 MB / 0.6957 GB, free: 2.547 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.1e-05/0.5603, allocations: 40 kB / 0.6958 GB, free: 2.508 MB / 490.7 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01195/0.5723, allocations: 6.856 MB / 0.7025 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.5724, allocations: 71.06 kB / 0.7025 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001885/0.5726, allocations: 137.1 kB / 0.7027 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002136/0.5728, allocations: 200 kB / 0.7029 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004257/0.5771, allocations: 1.435 MB / 0.7043 GB, free: 9.824 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000231/0.5774, allocations: 267 kB / 0.7045 GB, free: 9.562 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003559/0.5809, allocations: 299.6 kB / 0.7048 GB, free: 9.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005466/0.5815, allocations: 376.5 kB / 0.7052 GB, free: 8.902 MB / 0.4948 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 (775): * Single equations (assignments): 772 * 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.00326/0.5847, allocations: 2.029 MB / 0.7071 GB, free: 6.859 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006586/0.5854, allocations: 347.5 kB / 0.7075 GB, free: 6.516 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002338/0.5878, allocations: 1.337 MB / 0.7088 GB, free: 5.164 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.96e-05/0.5878, allocations: 22.48 kB / 0.7088 GB, free: 5.145 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.5878, allocations: 9.578 kB / 0.7088 GB, free: 5.137 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.5878, allocations: 7.969 kB / 0.7088 GB, free: 5.129 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009563/0.5974, allocations: 5.822 MB / 0.7145 GB, free: 15.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.874e-05/0.5975, allocations: 24 kB / 0.7145 GB, free: 15.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009392/0.5984, allocations: 275.5 kB / 0.7148 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-05/0.5984, allocations: 28 kB / 0.7148 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.339e-05/0.5985, allocations: 51.94 kB / 0.7149 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-05/0.5986, allocations: 31.92 kB / 0.7149 GB, free: 14.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.646e-05/0.5986, allocations: 27.88 kB / 0.7149 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00354/0.6021, allocations: 3.267 MB / 0.7181 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007117/0.6029, allocations: 420.4 kB / 0.7185 GB, free: 10.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004044/0.6033, allocations: 54.72 kB / 0.7186 GB, free: 10.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.6044, allocations: 67.95 kB / 0.7186 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.6046, allocations: 139.5 kB / 0.7188 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.133e-05/0.6047, allocations: 71.94 kB / 0.7188 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003258/0.6079, allocations: 2.489 MB / 0.7213 GB, free: 7.828 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6079, allocations: 0 / 0.7213 GB, free: 7.828 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003903/0.6119, allocations: 0.9062 MB / 0.7221 GB, free: 6.922 MB / 0.5105 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.0003512/0.6122, allocations: 200.7 kB / 0.7223 GB, free: 6.719 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005047/0.6173, allocations: 3.746 MB / 0.726 GB, free: 3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/0.6173, allocations: 4 kB / 0.726 GB, free: 2.996 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008916/0.6182, allocations: 0.7461 MB / 0.7267 GB, free: 2.254 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002125/0.6203, allocations: 457 kB / 0.7272 GB, free: 1.809 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.6334, allocations: 10.85 MB / 0.7378 GB, free: 6.691 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003/0.6365, allocations: 3.173 MB / 0.7409 GB, free: 3.488 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000675/0.6371, allocations: 291.4 kB / 0.7411 GB, free: 3.203 MB / 0.5261 GB Notification: Performance of SimCode: time 4.11e-07/0.6372, allocations: 0 / 0.7411 GB, free: 3.203 MB / 0.5261 GB Notification: Performance of Templates: time 0.267/0.9042, allocations: 52.61 MB / 0.7925 GB, free: 179.1 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches