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.001971/0.001971, allocations: 104.1 kB / 17.63 MB, free: 5.48 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.001869/0.00187, allocations: 192 kB / 18.56 MB, free: 4.562 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.336/1.336, allocations: 222.9 MB / 242.3 MB, free: 15.19 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.2046/0.2046, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 60.61 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1089, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01129/0.1203, allocations: 11.38 MB / 480.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007125/0.1274, allocations: 4.05 MB / 484.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.1286, allocations: 67.75 kB / 484.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004433/0.1331, allocations: 2.495 MB / 487.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004552/0.1377, allocations: 1.87 MB / 489.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001694/0.1394, allocations: 0.7761 MB / 490 MB, free: 9.531 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006146/0.1456, allocations: 4.424 MB / 494.4 MB, free: 5.098 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00524/0.1509, allocations: 3.327 MB / 497.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003086/0.154, allocations: 1.565 MB / 499.3 MB, free: 156 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003802/0.1578, allocations: 2.22 MB / 0.4898 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.159, allocations: 336 kB / 0.4901 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002392/0.1614, allocations: 0.983 MB / 0.4911 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00241/0.1638, allocations: 1.933 MB / 0.4929 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003958/0.1678, allocations: 2.268 MB / 0.4952 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007812/0.1756, allocations: 6.651 MB / 0.5017 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1757, allocations: 0 / 0.5017 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1757, allocations: 0 / 0.5017 GB, free: 1.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002248/0.1759, allocations: 0 / 0.5017 GB, free: 1.723 MB / 382.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.1826/0.3585, allocations: 4.853 MB / 0.5064 GB, free: 46.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.3586, allocations: 10.72 kB / 0.5064 GB, free: 46.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001156/0.3597, allocations: 0.7319 MB / 0.5071 GB, free: 46.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007737/0.3675, allocations: 1.965 MB / 0.509 GB, free: 45.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005278/0.3728, allocations: 2.939 MB / 0.5119 GB, free: 44.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/0.373, allocations: 255.5 kB / 0.5122 GB, free: 44.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006797/0.3737, allocations: 334.5 kB / 0.5125 GB, free: 44.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01595/0.3897, allocations: 10.2 MB / 0.5224 GB, free: 38.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.654e-05/0.3898, allocations: 43.31 kB / 0.5225 GB, free: 38.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003346/0.3901, allocations: 159.1 kB / 0.5226 GB, free: 38.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002259/0.3924, allocations: 1.907 MB / 0.5245 GB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01309/0.4055, allocations: 8.133 MB / 0.5324 GB, free: 29.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03603/0.4416, allocations: 39.42 MB / 0.5709 GB, free: 4.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008147/0.4498, allocations: 3.279 MB / 0.5741 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001632/0.4514, allocations: 1.045 MB / 0.5752 GB, free: 456 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008433/0.4599, allocations: 5.908 MB / 0.5809 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.662e-05/0.46, allocations: 47.56 kB / 0.581 GB, free: 10.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 7.123e-06/0.46, allocations: 3.984 kB / 0.581 GB, free: 10.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.02434/0.4843, allocations: 9.444 MB / 0.5902 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.263e-05/0.4845, allocations: 145.5 kB / 0.5903 GB, free: 396 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005465/0.4899, allocations: 4.063 MB / 0.5943 GB, free: 12.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001968/0.4902, allocations: 55.2 kB / 0.5944 GB, free: 12.24 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002052/0.4922, allocations: 3.179 MB / 0.5975 GB, free: 9.012 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005984/0.4928, allocations: 0.6365 MB / 0.5981 GB, free: 8.367 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001376/0.4942, allocations: 1.206 MB / 0.5993 GB, free: 7.148 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.4943, allocations: 305.1 kB / 0.5996 GB, free: 6.848 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002478/0.4968, allocations: 1.632 MB / 0.6011 GB, free: 5.211 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005183/0.502, allocations: 5.497 MB / 0.6065 GB, free: 13.78 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008831/0.5109, allocations: 7.768 MB / 0.6141 GB, free: 4.098 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/0.511, allocations: 40 kB / 0.6141 GB, free: 4.059 MB / 446.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01174/0.5228, allocations: 6.864 MB / 0.6208 GB, free: 13.19 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.76e-05/0.5229, allocations: 64 kB / 0.6209 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000128/0.523, allocations: 136 kB / 0.621 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/0.5232, allocations: 180 kB / 0.6212 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004054/0.5273, allocations: 1.423 MB / 0.6226 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002007/0.5275, allocations: 271.4 kB / 0.6229 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003491/0.531, allocations: 291.8 kB / 0.6231 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004648/0.5315, allocations: 380 kB / 0.6235 GB, free: 10.47 MB / 462.1 MB 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.002745/0.5342, allocations: 2.037 MB / 0.6255 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005497/0.5348, allocations: 347.5 kB / 0.6258 GB, free: 8.074 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002085/0.5369, allocations: 1.344 MB / 0.6271 GB, free: 6.719 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.5369, allocations: 16 kB / 0.6271 GB, free: 6.703 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.5369, allocations: 4 kB / 0.6271 GB, free: 6.699 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.5369, allocations: 7.969 kB / 0.6272 GB, free: 6.691 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009964/0.5469, allocations: 5.822 MB / 0.6328 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-05/0.547, allocations: 20 kB / 0.6329 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.548, allocations: 279.5 kB / 0.6331 GB, free: 268 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.979e-05/0.5481, allocations: 27.94 kB / 0.6331 GB, free: 240 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.845e-05/0.5482, allocations: 55.98 kB / 0.6332 GB, free: 184 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.424e-05/0.5482, allocations: 35.86 kB / 0.6332 GB, free: 148 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.839e-05/0.5482, allocations: 23.94 kB / 0.6333 GB, free: 124 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003983/0.5522, allocations: 3.279 MB / 0.6365 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008487/0.5531, allocations: 420.4 kB / 0.6369 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003621/0.5535, allocations: 47.98 kB / 0.6369 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.5546, allocations: 63.95 kB / 0.637 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.5548, allocations: 151.4 kB / 0.6371 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.5549, allocations: 64.09 kB / 0.6372 GB, free: 11.83 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003883/0.5588, allocations: 2.516 MB / 0.6396 GB, free: 9.305 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5588, allocations: 0 / 0.6396 GB, free: 9.305 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004519/0.5633, allocations: 0.8998 MB / 0.6405 GB, free: 8.41 MB / 478.1 MB 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.004391/0.5677, allocations: 3.944 MB / 0.6444 GB, free: 4.215 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00679/0.5746, allocations: 3.96 MB / 0.6482 GB, free: 312 kB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-05/0.5746, allocations: 7.938 kB / 0.6482 GB, free: 304 kB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.5757, allocations: 0.7493 MB / 0.649 GB, free: 15.55 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00291/0.5787, allocations: 478.1 kB / 0.6494 GB, free: 15.09 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07007/0.6488, allocations: 47.27 MB / 0.6956 GB, free: 7.387 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004645/0.6535, allocations: 3.173 MB / 0.6987 GB, free: 4.184 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004415/0.6579, allocations: 1.812 MB / 0.7005 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002406/0.6603, allocations: 1.87 MB / 0.7023 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of SimCode: time 8.41e-07/0.6603, allocations: 0 / 0.7023 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2817/0.942, allocations: 62.68 MB / 0.7635 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.886/10.83, allocations: 12.33 kB / 0.7635 GB, free: 146.2 MB / 0.5294 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_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.csv","/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