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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001672/0.001672, allocations: 107.8 kB / 20.48 MB, free: 1.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002004/0.002004, allocations: 214.7 kB / 23.78 MB, free: 4.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 230.5 MB / 257.4 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2441/0.2441, allocations: 46.95 MB / 360.9 MB, free: 3.875 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002308/0.002308, allocations: 75.88 kB / 0.4962 GB, free: 7.492 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3944, allocations: 66.09 MB / 0.5608 GB, free: 3.98 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01327/0.4077, allocations: 9.925 MB / 0.5705 GB, free: 10 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008962/0.4166, allocations: 3.884 MB / 0.5742 GB, free: 6.109 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001962/0.4186, allocations: 75.62 kB / 0.5743 GB, free: 6.035 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005271/0.4238, allocations: 2.433 MB / 0.5767 GB, free: 3.594 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005507/0.4294, allocations: 1.907 MB / 0.5786 GB, free: 1.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001939/0.4313, allocations: 0.7683 MB / 0.5793 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007161/0.4385, allocations: 4.507 MB / 0.5837 GB, free: 12.39 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003915/0.4424, allocations: 2.771 MB / 0.5864 GB, free: 9.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002877/0.4452, allocations: 1.581 MB / 0.588 GB, free: 7.984 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003901/0.4491, allocations: 2.266 MB / 0.5902 GB, free: 5.711 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009662/0.4501, allocations: 332 kB / 0.5905 GB, free: 5.387 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002095/0.4522, allocations: 0.866 MB / 0.5913 GB, free: 4.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002253/0.4545, allocations: 1.963 MB / 0.5933 GB, free: 2.551 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003123/0.4576, allocations: 1.677 MB / 0.5949 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009414/0.467, allocations: 6.882 MB / 0.6016 GB, free: 9.953 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.467, allocations: 0 / 0.6016 GB, free: 9.953 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.467, allocations: 0 / 0.6016 GB, free: 9.953 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002446/0.4673, allocations: 0 / 0.6016 GB, free: 9.953 MB / 446.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.01221/0.4795, allocations: 4.873 MB / 0.6064 GB, free: 5.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.4795, allocations: 8.031 kB / 0.6064 GB, free: 5.012 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001653/0.4812, allocations: 0.728 MB / 0.6071 GB, free: 4.273 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008483/0.4896, allocations: 2.151 MB / 0.6092 GB, free: 2.117 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00665/0.4963, allocations: 2.734 MB / 0.6119 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002635/0.4966, allocations: 250.2 kB / 0.6121 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001166/0.4977, allocations: 331.8 kB / 0.6124 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/0.5182, allocations: 10.36 MB / 0.6225 GB, free: 3.574 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001417/0.5183, allocations: 43.64 kB / 0.6226 GB, free: 3.531 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004531/0.5188, allocations: 163.8 kB / 0.6227 GB, free: 3.371 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002969/0.5218, allocations: 1.904 MB / 0.6246 GB, free: 1.465 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01831/0.5401, allocations: 8.169 MB / 0.6326 GB, free: 9.273 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05313/0.5932, allocations: 37.91 MB / 0.6696 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008282/0.6015, allocations: 2.861 MB / 0.6724 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.6031, allocations: 0.9595 MB / 0.6733 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009087/0.6122, allocations: 4.371 MB / 0.6776 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.855e-05/0.6123, allocations: 51.5 kB / 0.6776 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=148): time 5.29e-06/0.6123, allocations: 4 kB / 0.6776 GB, free: 9.816 MB / 0.5137 GB Notification: Performance of matching and sorting (n=160): time 0.02467/0.6369, allocations: 9.962 MB / 0.6874 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001695/0.6371, allocations: 204.9 kB / 0.6876 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006898/0.644, allocations: 4.288 MB / 0.6917 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003166/0.6443, allocations: 49.7 kB / 0.6918 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003026/0.6473, allocations: 3.31 MB / 0.695 GB, free: 7.852 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00092/0.6483, allocations: 0.663 MB / 0.6957 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001827/0.6501, allocations: 1.219 MB / 0.6969 GB, free: 5.953 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.6503, allocations: 305.1 kB / 0.6972 GB, free: 5.652 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003182/0.6534, allocations: 1.659 MB / 0.6988 GB, free: 3.988 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006709/0.6602, allocations: 5.588 MB / 0.7042 GB, free: 12.45 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/0.6709, allocations: 7.794 MB / 0.7118 GB, free: 2.73 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001538/0.671, allocations: 44 kB / 0.7119 GB, free: 2.688 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01507/0.6861, allocations: 6.934 MB / 0.7187 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.6862, allocations: 64 kB / 0.7187 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001941/0.6864, allocations: 136 kB / 0.7188 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001958/0.6866, allocations: 184.1 kB / 0.719 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00475/0.6913, allocations: 1.439 MB / 0.7204 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002363/0.6916, allocations: 270.9 kB / 0.7207 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004291/0.6959, allocations: 351.5 kB / 0.721 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007991/0.6967, allocations: 376 kB / 0.7214 GB, free: 8.949 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003488/0.7002, allocations: 2.029 MB / 0.7234 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007366/0.7009, allocations: 365.6 kB / 0.7237 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007707/0.7017, allocations: 422.7 kB / 0.7241 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.07e-05/0.7017, allocations: 16 kB / 0.7241 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/0.7017, allocations: 0 / 0.7241 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.026e-05/0.7017, allocations: 15.91 kB / 0.7241 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/0.7122, allocations: 5.579 MB / 0.7296 GB, free: 236 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.678e-05/0.7122, allocations: 16 kB / 0.7296 GB, free: 220 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2794/0.9916, allocations: 279.8 kB / 0.7299 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.236e-05/0.9917, allocations: 25 kB / 0.7299 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002578/0.9919, allocations: 52.69 kB / 0.7299 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.999e-05/0.992, allocations: 36.75 kB / 0.73 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.744e-05/0.992, allocations: 26.66 kB / 0.73 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005082/0.9971, allocations: 3.323 MB / 0.7333 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001262/0.9984, allocations: 362.7 kB / 0.7336 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003791/0.9988, allocations: 53.5 kB / 0.7337 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/1, allocations: 81.44 kB / 0.7337 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/1, allocations: 148.4 kB / 0.7339 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.718e-05/1, allocations: 74.55 kB / 0.7339 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004301/1.005, allocations: 2.512 MB / 0.7364 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.005, allocations: 1.094 kB / 0.7364 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005638/1.01, allocations: 0.8851 MB / 0.7373 GB, free: 150 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004585/1.015, allocations: 3.992 MB / 0.7412 GB, free: 147.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006503/1.021, allocations: 3.678 MB / 0.7448 GB, free: 146.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/1.021, allocations: 3.625 kB / 0.7448 GB, free: 146.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009129/1.022, allocations: 0.7184 MB / 0.7455 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002968/1.025, allocations: 466.4 kB / 0.7459 GB, free: 146.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04963/1.075, allocations: 41.81 MB / 0.7867 GB, free: 101 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003014/1.078, allocations: 2.632 MB / 0.7893 GB, free: 98.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003463/1.081, allocations: 1.816 MB / 0.7911 GB, free: 96.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002113/1.083, allocations: 1.874 MB / 0.7929 GB, free: 94.61 MB / 0.5606 GB Notification: Performance of SimCode: time 1.804e-06/1.083, allocations: 0 / 0.7929 GB, free: 94.61 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/1.184, allocations: 58.93 MB / 0.8505 GB, free: 36.43 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.57/16.75, allocations: 7.734 kB / 0.8505 GB, free: 36.42 MB / 0.5606 GB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00059976 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.952924489974976]