Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001606, allocations: 109.5 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 188 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.199/0.199, allocations: 44.18 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 63.91 kB / 470.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3169, allocations: 60.82 MB / 0.5184 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01191/0.3289, allocations: 11.39 MB / 0.5296 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008646/0.3375, allocations: 4.037 MB / 0.5335 GB, free: 8.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002127/0.3397, allocations: 65.31 kB / 0.5336 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005131/0.3448, allocations: 2.49 MB / 0.536 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005474/0.3504, allocations: 1.865 MB / 0.5378 GB, free: 5.418 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001877/0.3523, allocations: 0.7864 MB / 0.5386 GB, free: 4.871 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006415/0.3587, allocations: 4.432 MB / 0.5429 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004748/0.3635, allocations: 3.324 MB / 0.5462 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002825/0.3663, allocations: 1.565 MB / 0.5477 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003411/0.3698, allocations: 2.223 MB / 0.5499 GB, free: 12 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.3709, allocations: 332 kB / 0.5502 GB, free: 11.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002428/0.3733, allocations: 0.9909 MB / 0.5511 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002143/0.3755, allocations: 1.936 MB / 0.553 GB, free: 8.742 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002774/0.3783, allocations: 2.26 MB / 0.5552 GB, free: 6.469 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006835/0.3851, allocations: 6.894 MB / 0.562 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3852, allocations: 0 / 0.562 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3852, allocations: 0 / 0.562 GB, free: 15.55 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000146/0.3853, allocations: 0 / 0.562 GB, free: 15.55 MB / 430.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.009215/0.3946, allocations: 4.846 MB / 0.5667 GB, free: 10.63 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.3946, allocations: 12.03 kB / 0.5667 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00102/0.3956, allocations: 0.728 MB / 0.5674 GB, free: 9.883 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007524/0.4032, allocations: 1.972 MB / 0.5694 GB, free: 7.902 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005787/0.409, allocations: 2.988 MB / 0.5723 GB, free: 4.852 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001967/0.4092, allocations: 258.2 kB / 0.5725 GB, free: 4.598 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008291/0.4101, allocations: 323.8 kB / 0.5728 GB, free: 4.281 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01795/0.428, allocations: 10.21 MB / 0.5828 GB, free: 9.281 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001224/0.4282, allocations: 51.53 kB / 0.5828 GB, free: 9.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004084/0.4286, allocations: 163.8 kB / 0.583 GB, free: 9.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002639/0.4312, allocations: 1.9 MB / 0.5849 GB, free: 7.168 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.015/0.4463, allocations: 8.142 MB / 0.5928 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04409/0.4904, allocations: 39.26 MB / 0.6311 GB, free: 6.559 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007975/0.4984, allocations: 3.27 MB / 0.6343 GB, free: 3.121 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001653/0.5001, allocations: 1.057 MB / 0.6354 GB, free: 2.043 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009225/0.5093, allocations: 5.89 MB / 0.6411 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.5094, allocations: 51.44 kB / 0.6412 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.168e-06/0.5094, allocations: 0 / 0.6412 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.0218/0.5312, allocations: 9.446 MB / 0.6504 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.5314, allocations: 196.9 kB / 0.6506 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005607/0.537, allocations: 4.063 MB / 0.6546 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002186/0.5372, allocations: 45.7 kB / 0.6546 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.5393, allocations: 3.187 MB / 0.6577 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000588/0.5399, allocations: 0.6483 MB / 0.6583 GB, free: 9.898 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/0.5412, allocations: 1.202 MB / 0.6595 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.843e-05/0.5414, allocations: 305.1 kB / 0.6598 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002489/0.5438, allocations: 1.632 MB / 0.6614 GB, free: 6.746 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004927/0.5488, allocations: 5.506 MB / 0.6668 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008225/0.557, allocations: 7.762 MB / 0.6744 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.309e-05/0.5572, allocations: 36 kB / 0.6744 GB, free: 5.586 MB / 0.5294 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01108/0.5682, allocations: 6.862 MB / 0.6811 GB, free: 14.71 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.303e-05/0.5684, allocations: 67.94 kB / 0.6812 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001419/0.5685, allocations: 144.1 kB / 0.6813 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/0.5687, allocations: 180 kB / 0.6815 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003964/0.5727, allocations: 1.423 MB / 0.6829 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001938/0.5729, allocations: 267 kB / 0.6831 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003504/0.5764, allocations: 299.5 kB / 0.6834 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004449/0.5768, allocations: 380 kB / 0.6838 GB, free: 11.98 MB / 0.545 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.002627/0.5795, allocations: 2.029 MB / 0.6857 GB, free: 9.938 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005304/0.58, allocations: 347.5 kB / 0.6861 GB, free: 9.594 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/0.5821, allocations: 1.348 MB / 0.6874 GB, free: 8.234 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.387e-05/0.5822, allocations: 16 kB / 0.6874 GB, free: 8.219 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.5822, allocations: 4 kB / 0.6874 GB, free: 8.215 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.5822, allocations: 7.922 kB / 0.6874 GB, free: 8.207 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009222/0.5914, allocations: 5.821 MB / 0.6931 GB, free: 2.074 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/0.5915, allocations: 16 kB / 0.6931 GB, free: 2.059 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009986/0.5925, allocations: 283.5 kB / 0.6934 GB, free: 1.781 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.326e-05/0.5925, allocations: 24.09 kB / 0.6934 GB, free: 1.758 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.552e-05/0.5926, allocations: 48.58 kB / 0.6935 GB, free: 1.711 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.784e-05/0.5927, allocations: 35.86 kB / 0.6935 GB, free: 1.676 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.686e-05/0.5927, allocations: 31.88 kB / 0.6935 GB, free: 1.645 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003852/0.5965, allocations: 3.283 MB / 0.6967 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009326/0.5975, allocations: 424.4 kB / 0.6971 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003289/0.5978, allocations: 55.97 kB / 0.6972 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.599, allocations: 55.97 kB / 0.6972 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.5992, allocations: 147.4 kB / 0.6974 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.5993, allocations: 71.98 kB / 0.6974 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003923/0.6032, allocations: 2.516 MB / 0.6999 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/0.6032, allocations: 0 / 0.6999 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004544/0.6078, allocations: 0.8984 MB / 0.7008 GB, free: 9.91 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.004389/0.6122, allocations: 3.949 MB / 0.7046 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006194/0.6184, allocations: 3.805 MB / 0.7084 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.628e-05/0.6184, allocations: 7.938 kB / 0.7084 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.6196, allocations: 0.7398 MB / 0.7091 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/0.6224, allocations: 478.7 kB / 0.7095 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3045/0.9269, allocations: 41.54 MB / 0.7501 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002626/0.9296, allocations: 3.174 MB / 0.7532 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003615/0.9332, allocations: 1.815 MB / 0.755 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001832/0.9351, allocations: 1.866 MB / 0.7568 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of SimCode: time 8.52e-07/0.9351, allocations: 0 / 0.7568 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08541/1.021, allocations: 59.61 MB / 0.815 GB, free: 100.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.65/18.67, allocations: 11.06 kB / 0.815 GB, free: 100.7 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches