Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.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.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries") translateModel(ModelicaTest.MultiBody.Forces.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009043/0.0009044, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.6 MB / 243.1 MB, free: 12.37 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000733/0.0007329, allocations: 97.09 kB / 295.1 MB, free: 4.52 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1936/0.1936, allocations: 44.84 MB / 392 MB, free: 11.35 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002677/0.000268, allocations: 8 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08727/0.08755, allocations: 62.97 MB / 0.5153 GB, free: 5.109 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.SpringDamperSeries): time 0.02793/0.1155, allocations: 34.85 MB / 0.5494 GB, free: 2.152 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.1975/0.3131, allocations: 7.471 MB / 0.5567 GB, free: 9.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005257/0.3184, allocations: 158.1 kB / 0.5568 GB, free: 9.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004611/0.323, allocations: 1.776 MB / 0.5585 GB, free: 9.75 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01227/0.3353, allocations: 4.966 MB / 0.5634 GB, free: 8.914 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002018/0.3373, allocations: 416.4 kB / 0.5638 GB, free: 8.891 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004518/0.3419, allocations: 3.463 MB / 0.5672 GB, free: 8.398 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004937/0.3468, allocations: 3.792 MB / 0.5709 GB, free: 7.227 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001515/0.3484, allocations: 0.9929 MB / 0.5718 GB, free: 6.871 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001624/0.35, allocations: 1.56 MB / 0.5734 GB, free: 6.336 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003266/0.3503, allocations: 130.6 kB / 0.5735 GB, free: 6.336 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001433/0.3518, allocations: 0.7551 MB / 0.5742 GB, free: 6.145 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.3529, allocations: 1.389 MB / 0.5756 GB, free: 5.66 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006466/0.3535, allocations: 0.7534 MB / 0.5763 GB, free: 5.477 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004065/0.3576, allocations: 4.8 MB / 0.581 GB, free: 2.883 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3576, allocations: 2.625 kB / 0.581 GB, free: 2.883 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3576, allocations: 0 / 0.581 GB, free: 2.883 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001291/0.3578, allocations: 0 / 0.581 GB, free: 2.883 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1473 * Number of variables: 1473 Notification: Performance of Generate backend data structure: time 0.006024/0.3638, allocations: 3.524 MB / 0.5845 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.3638, allocations: 7.156 kB / 0.5845 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005931/0.3698, allocations: 1.919 MB / 0.5863 GB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002851/0.3726, allocations: 1.721 MB / 0.588 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.3728, allocations: 226.7 kB / 0.5882 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004392/0.3732, allocations: 294.2 kB / 0.5885 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.3906, allocations: 10.61 MB / 0.5989 GB, free: 7.555 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/0.3907, allocations: 39.67 kB / 0.5989 GB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003541/0.3911, allocations: 144.5 kB / 0.599 GB, free: 7.477 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003122/0.3942, allocations: 2.038 MB / 0.601 GB, free: 5.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01765/0.4119, allocations: 9.303 MB / 0.6101 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04311/0.4551, allocations: 38.01 MB / 0.6472 GB, free: 5.973 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/0.4651, allocations: 4.17 MB / 0.6513 GB, free: 1.645 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002929/0.4681, allocations: 2.297 MB / 0.6535 GB, free: 15.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008676/0.4768, allocations: 6.032 MB / 0.6594 GB, free: 9.082 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.4769, allocations: 57.62 kB / 0.6595 GB, free: 9.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=181): time 3.958e-06/0.4769, allocations: 0 / 0.6595 GB, free: 9.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=210): time 0.05952/0.5364, allocations: 21.92 MB / 0.6809 GB, free: 2.945 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.5365, allocations: 153.8 kB / 0.681 GB, free: 2.766 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004763/0.5413, allocations: 3.367 MB / 0.6843 GB, free: 15.39 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002303/0.5415, allocations: 52.59 kB / 0.6844 GB, free: 15.34 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001931/0.5435, allocations: 2.794 MB / 0.6871 GB, free: 12.55 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008103/0.5443, allocations: 0.8008 MB / 0.6879 GB, free: 11.76 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003359/0.5446, allocations: 116 kB / 0.688 GB, free: 11.65 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003863/0.545, allocations: 0.558 MB / 0.6886 GB, free: 11.08 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003437/0.5485, allocations: 2.303 MB / 0.6908 GB, free: 8.773 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00559/0.5541, allocations: 5.757 MB / 0.6964 GB, free: 1.301 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005042/0.5591, allocations: 3.579 MB / 0.6999 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.989e-05/0.5592, allocations: 36 kB / 0.7 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01358/0.5728, allocations: 8.62 MB / 0.7084 GB, free: 5.051 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.181e-05/0.5729, allocations: 58.2 kB / 0.7084 GB, free: 4.996 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/0.5731, allocations: 124 kB / 0.7085 GB, free: 4.875 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/0.5758, allocations: 1.061 MB / 0.7096 GB, free: 3.801 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004326/0.5801, allocations: 1.38 MB / 0.7109 GB, free: 2.418 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005437/0.5856, allocations: 5.408 MB / 0.7162 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003754/0.5894, allocations: 319.5 kB / 0.7165 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007592/0.5901, allocations: 360 kB / 0.7169 GB, free: 12.08 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],s1.color[3],s1.color[2],s1.color[1],s1.massColor[3],s1.massColor[2],s1.massColor[1],sps1.color[3],sps1.color[2],sps1.color[1],sps1.color_b[3],sps1.color_b[2],sps1.color_b[1],sps1.color_a[3],sps1.color_a[2],sps1.color_a[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 (734): * Single equations (assignments): 727 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003414/0.5936, allocations: 1.942 MB / 0.7188 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005974/0.5942, allocations: 312 kB / 0.7191 GB, free: 9.82 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006907/0.6011, allocations: 3.932 MB / 0.7229 GB, free: 5.859 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.199e-05/0.6011, allocations: 24.19 kB / 0.7229 GB, free: 5.836 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/0.6011, allocations: 8 kB / 0.7229 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.6012, allocations: 7.969 kB / 0.7229 GB, free: 5.82 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01565/0.6168, allocations: 8.881 MB / 0.7316 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.6169, allocations: 0 / 0.7316 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001639/0.6185, allocations: 355.4 kB / 0.7319 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002446/0.621, allocations: 0.8696 MB / 0.7328 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001896/0.6212, allocations: 38.81 kB / 0.7328 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004713/0.6259, allocations: 4.746 MB / 0.7375 GB, free: 6.621 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6259, allocations: 4.031 kB / 0.7375 GB, free: 6.617 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009885/0.6358, allocations: 6.849 MB / 0.7442 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008133/0.6366, allocations: 368.9 kB / 0.7445 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00053/0.6372, allocations: 32 kB / 0.7445 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/0.6387, allocations: 119.8 kB / 0.7447 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002672/0.639, allocations: 121 kB / 0.7448 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/0.6392, allocations: 58.72 kB / 0.7448 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003427/0.6426, allocations: 2.061 MB / 0.7468 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.61e-07/0.6426, allocations: 192 / 0.7468 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004194/0.6468, allocations: 0.9648 MB / 0.7478 GB, free: 12.02 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (sps1.s_damper,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b,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 (178): * Single equations (assignments): 171 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004685/0.6473, allocations: 176.8 kB / 0.7479 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009866/0.6572, allocations: 6.09 MB / 0.7539 GB, free: 5.707 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.6572, allocations: 5.641 kB / 0.7539 GB, free: 5.703 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004156/0.6614, allocations: 2.459 MB / 0.7563 GB, free: 3.18 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002548/0.6639, allocations: 335.3 kB / 0.7566 GB, free: 2.855 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1889/0.8529, allocations: 11.15 MB / 0.7675 GB, free: 192.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003741/0.8567, allocations: 3.027 MB / 0.7705 GB, free: 192 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001222/0.8579, allocations: 286.2 kB / 0.7707 GB, free: 192 MB / 0.5417 GB Notification: Performance of SimCode: time 7.52e-07/0.8579, allocations: 0 / 0.7707 GB, free: 192 MB / 0.5417 GB Notification: Performance of Templates: time 0.1112/0.9691, allocations: 123.9 MB / 0.8917 GB, free: 84.32 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/SpringDamperSeries/SpringDamperSeries.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches