Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_3_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.001061/0.001061, allocations: 111.4 kB / 16.41 MB, free: 6.496 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.0009747/0.0009747, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.239/1.239, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1867/0.1867, allocations: 43.53 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001352, allocations: 68.41 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.08637, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01037/0.09678, allocations: 11.45 MB / 0.4986 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006717/0.1035, allocations: 4.043 MB / 0.5025 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.1047, allocations: 67.81 kB / 0.5026 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004259/0.1089, allocations: 2.499 MB / 0.505 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004166/0.1132, allocations: 1.922 MB / 0.5069 GB, free: 8.242 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001476/0.1147, allocations: 0.78 MB / 0.5077 GB, free: 7.461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004899/0.1196, allocations: 4.468 MB / 0.512 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00326/0.1229, allocations: 3.343 MB / 0.5153 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001958/0.1248, allocations: 1.577 MB / 0.5168 GB, free: 14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002655/0.1275, allocations: 2.239 MB / 0.519 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000739/0.1283, allocations: 332 kB / 0.5193 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001847/0.1301, allocations: 0.9753 MB / 0.5203 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001657/0.1318, allocations: 1.956 MB / 0.5222 GB, free: 8.492 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002479/0.1343, allocations: 2.26 MB / 0.5244 GB, free: 6.219 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1985/0.3328, allocations: 6.932 MB / 0.5312 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.3329, allocations: 0.6562 kB / 0.5312 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3329, allocations: 1.031 kB / 0.5312 GB, free: 15.89 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002125/0.3331, allocations: 0 / 0.5312 GB, free: 15.89 MB / 414.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.01014/0.3433, allocations: 5.003 MB / 0.5361 GB, free: 13.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.3433, allocations: 13.11 kB / 0.5361 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001312/0.3447, allocations: 0.7318 MB / 0.5368 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007369/0.352, allocations: 1.995 MB / 0.5388 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006087/0.3582, allocations: 3.298 MB / 0.542 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.3583, allocations: 251 kB / 0.5422 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006898/0.359, allocations: 336.5 kB / 0.5425 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01679/0.3758, allocations: 10.2 MB / 0.5525 GB, free: 10.01 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001249/0.376, allocations: 49.45 kB / 0.5525 GB, free: 10.01 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004515/0.3765, allocations: 162.8 kB / 0.5527 GB, free: 9.934 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002534/0.379, allocations: 1.906 MB / 0.5546 GB, free: 9.605 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01405/0.3931, allocations: 8.147 MB / 0.5625 GB, free: 7.316 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03861/0.4317, allocations: 39.35 MB / 0.6009 GB, free: 2.531 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007736/0.4395, allocations: 3.273 MB / 0.6041 GB, free: 15.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001471/0.441, allocations: 1.059 MB / 0.6052 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008519/0.4495, allocations: 5.927 MB / 0.611 GB, free: 7.812 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.4496, allocations: 44.5 kB / 0.611 GB, free: 7.762 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 4.088e-06/0.4496, allocations: 0 / 0.611 GB, free: 7.762 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02231/0.4719, allocations: 9.793 MB / 0.6206 GB, free: 13.91 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.4721, allocations: 200.9 kB / 0.6208 GB, free: 13.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004899/0.477, allocations: 4.099 MB / 0.6248 GB, free: 9.559 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001556/0.4771, allocations: 52.98 kB / 0.6248 GB, free: 9.504 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001896/0.4791, allocations: 3.318 MB / 0.6281 GB, free: 6.215 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005464/0.4796, allocations: 0.6608 MB / 0.6287 GB, free: 5.562 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001335/0.481, allocations: 1.217 MB / 0.6299 GB, free: 4.336 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.4811, allocations: 312 kB / 0.6302 GB, free: 4.035 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002383/0.4835, allocations: 1.636 MB / 0.6318 GB, free: 2.398 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004439/0.4879, allocations: 5.506 MB / 0.6372 GB, free: 11.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007581/0.4955, allocations: 7.759 MB / 0.6447 GB, free: 1.883 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.091e-05/0.4956, allocations: 40 kB / 0.6448 GB, free: 1.844 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01056/0.5062, allocations: 6.882 MB / 0.6515 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.581e-05/0.5063, allocations: 68.06 kB / 0.6516 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001363/0.5064, allocations: 136 kB / 0.6517 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001632/0.5066, allocations: 184 kB / 0.6519 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003816/0.5104, allocations: 1.419 MB / 0.6533 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001908/0.5106, allocations: 268.4 kB / 0.6535 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003426/0.5141, allocations: 307.6 kB / 0.6538 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004427/0.5145, allocations: 374.2 kB / 0.6542 GB, free: 8.379 MB / 0.4981 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.002548/0.5171, allocations: 2.033 MB / 0.6561 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005433/0.5176, allocations: 369.5 kB / 0.6565 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002041/0.5197, allocations: 1.345 MB / 0.6578 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.576e-05/0.5197, allocations: 20 kB / 0.6578 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.5197, allocations: 0 / 0.6578 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.5198, allocations: 8.109 kB / 0.6578 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008672/0.5284, allocations: 5.838 MB / 0.6635 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.181e-05/0.5285, allocations: 20 kB / 0.6636 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009498/0.5295, allocations: 280.3 kB / 0.6638 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.22e-05/0.5295, allocations: 24 kB / 0.6638 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-05/0.5296, allocations: 49.09 kB / 0.6639 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.257e-05/0.5296, allocations: 39.86 kB / 0.6639 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-05/0.5296, allocations: 23.88 kB / 0.664 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003491/0.5331, allocations: 3.305 MB / 0.6672 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.5342, allocations: 0.5376 MB / 0.6677 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003823/0.5346, allocations: 48.73 kB / 0.6678 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.5358, allocations: 67.89 kB / 0.6678 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.536, allocations: 143.4 kB / 0.668 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.952e-05/0.536, allocations: 68 kB / 0.668 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003413/0.5395, allocations: 2.54 MB / 0.6705 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.7e-07/0.5395, allocations: 2.297 kB / 0.6705 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004245/0.5437, allocations: 0.9021 MB / 0.6714 GB, free: 6.164 MB / 0.5137 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.003964/0.5477, allocations: 3.977 MB / 0.6753 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00555/0.5533, allocations: 3.794 MB / 0.679 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/0.5533, allocations: 4 kB / 0.679 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009668/0.5543, allocations: 0.757 MB / 0.6797 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002625/0.5569, allocations: 476.8 kB / 0.6802 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04771/0.6046, allocations: 41.88 MB / 0.7211 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003123/0.6078, allocations: 3.188 MB / 0.7242 GB, free: 9.441 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003576/0.6114, allocations: 1.816 MB / 0.726 GB, free: 7.617 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001992/0.6134, allocations: 1.874 MB / 0.7278 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of SimCode: time 7.62e-07/0.6134, allocations: 0 / 0.7278 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2903/0.9037, allocations: 59.1 MB / 0.7855 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.56/18.47, allocations: 3.281 kB / 0.7855 GB, free: 199.6 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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.0012 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches