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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008627/0.0008627, allocations: 76.5 kB / 19.92 MB, free: 4.637 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009/0.0009, allocations: 173.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.7931/0.7931, allocations: 158.6 MB / 185 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1181/0.1181, allocations: 32.37 MB / 269.6 MB, free: 14.95 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 406.8 MB, free: 2.223 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.462e-05/1.597e-05, allocations: 10.08 kB / 406.9 MB, free: 2.215 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.007369/0.007385, allocations: 10.01 MB / 416.9 MB, free: 8.152 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.005543/0.01293, allocations: 3.864 MB / 420.7 MB, free: 4.277 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008559/0.01378, allocations: 79.56 kB / 420.8 MB, free: 4.199 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002333/0.01612, allocations: 2.565 MB / 423.4 MB, free: 1.625 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002601/0.01872, allocations: 1.994 MB / 425.4 MB, free: 15.62 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.01975, allocations: 0.8537 MB / 426.2 MB, free: 14.77 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.004132/0.02388, allocations: 5.099 MB / 431.3 MB, free: 9.652 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002582/0.02646, allocations: 3.29 MB / 434.6 MB, free: 6.312 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002295/0.02876, allocations: 2.467 MB / 437.1 MB, free: 3.84 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002004/0.03076, allocations: 2.514 MB / 439.6 MB, free: 1.32 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004566/0.03122, allocations: 340 kB / 439.9 MB, free: 0.9883 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.03228, allocations: 0.9362 MB / 440.9 MB, free: 52 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001078/0.03336, allocations: 2.092 MB / 442.9 MB, free: 13.95 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.03449, allocations: 1.347 MB / 444.3 MB, free: 12.6 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00434/0.03883, allocations: 6.973 MB / 451.3 MB, free: 5.605 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.03884, allocations: 0 / 451.3 MB, free: 5.605 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.03884, allocations: 0 / 451.3 MB, free: 5.605 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.331e-05/0.03893, allocations: 0 / 451.3 MB, free: 5.605 MB / 426.7 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.005276/0.04421, allocations: 4.997 MB / 456.3 MB, free: 0.5469 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.04425, allocations: 8.031 kB / 456.3 MB, free: 0.5391 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005505/0.0448, allocations: 0.728 MB / 457 MB, free: 15.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003909/0.04871, allocations: 2.155 MB / 459.2 MB, free: 13.64 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.05131, allocations: 2.719 MB / 461.9 MB, free: 10.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.05143, allocations: 250.7 kB / 462.1 MB, free: 10.63 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003469/0.05177, allocations: 332.2 kB / 462.4 MB, free: 10.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1689/0.2207, allocations: 10.33 MB / 472.8 MB, free: 92.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/0.2208, allocations: 46.88 kB / 472.8 MB, free: 92.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002844/0.2211, allocations: 161.4 kB / 473 MB, free: 92.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001477/0.2225, allocations: 1.901 MB / 474.9 MB, free: 92.06 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008496/0.231, allocations: 8.15 MB / 483 MB, free: 89.58 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02295/0.254, allocations: 38.17 MB / 0.509 GB, free: 62.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005775/0.2598, allocations: 2.828 MB / 0.5117 GB, free: 61.26 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.2609, allocations: 0.9589 MB / 0.5127 GB, free: 60.91 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006086/0.2669, allocations: 4.502 MB / 0.5171 GB, free: 58.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.267, allocations: 59.89 kB / 0.5171 GB, free: 58.86 MB / 442.7 MB Notification: Performance of pre-optimization done (n=148): time 3.567e-06/0.267, allocations: 0 / 0.5171 GB, free: 58.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.01523/0.2822, allocations: 10.18 MB / 0.5271 GB, free: 54.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/0.2823, allocations: 200.7 kB / 0.5273 GB, free: 54.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003954/0.2862, allocations: 4.711 MB / 0.5319 GB, free: 50.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/0.2864, allocations: 49.7 kB / 0.5319 GB, free: 50.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001042/0.2874, allocations: 3.282 MB / 0.5351 GB, free: 47.37 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003829/0.2878, allocations: 0.6577 MB / 0.5358 GB, free: 46.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000816/0.2886, allocations: 1.197 MB / 0.5369 GB, free: 45.53 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 2.599e-05/0.2886, allocations: 305.1 kB / 0.5372 GB, free: 45.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001455/0.2901, allocations: 1.651 MB / 0.5388 GB, free: 43.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002077/0.2922, allocations: 5.572 MB / 0.5443 GB, free: 36.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004184/0.2964, allocations: 7.777 MB / 0.5519 GB, free: 26.35 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.377e-05/0.2964, allocations: 41.62 kB / 0.5519 GB, free: 26.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.006335/0.3028, allocations: 6.929 MB / 0.5587 GB, free: 19.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.882e-05/0.3028, allocations: 64 kB / 0.5587 GB, free: 19.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.064e-05/0.3029, allocations: 136 kB / 0.5589 GB, free: 19.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.502e-05/0.303, allocations: 184 kB / 0.559 GB, free: 19.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/0.3052, allocations: 1.435 MB / 0.5604 GB, free: 17.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001239/0.3053, allocations: 270.9 kB / 0.5607 GB, free: 17.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002713/0.308, allocations: 413.5 kB / 0.5611 GB, free: 16.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002449/0.3083, allocations: 379.9 kB / 0.5614 GB, free: 16.53 MB / 442.7 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.00176/0.31, allocations: 2.036 MB / 0.5634 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005347/0.3106, allocations: 373.5 kB / 0.5638 GB, free: 14.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.3118, allocations: 1.342 MB / 0.5651 GB, free: 12.76 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.3118, allocations: 21.95 kB / 0.5651 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.3118, allocations: 3.938 kB / 0.5651 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.3118, allocations: 7.969 kB / 0.5651 GB, free: 12.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005866/0.3176, allocations: 5.65 MB / 0.5707 GB, free: 6.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.3177, allocations: 19.44 kB / 0.5707 GB, free: 6.805 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005242/0.3182, allocations: 287.5 kB / 0.5709 GB, free: 6.523 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.208e-05/0.3182, allocations: 27.98 kB / 0.571 GB, free: 6.496 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.996e-05/0.3183, allocations: 45.5 kB / 0.571 GB, free: 6.453 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.797e-05/0.3183, allocations: 35.86 kB / 0.5711 GB, free: 6.418 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/0.3183, allocations: 23.94 kB / 0.5711 GB, free: 6.395 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.3206, allocations: 3.269 MB / 0.5743 GB, free: 2.879 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008411/0.3214, allocations: 0.5208 MB / 0.5748 GB, free: 2.355 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002555/0.3216, allocations: 47.98 kB / 0.5748 GB, free: 2.309 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00079/0.3224, allocations: 131.8 kB / 0.5749 GB, free: 2.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.932e-05/0.3225, allocations: 147.3 kB / 0.5751 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/0.3226, allocations: 68 kB / 0.5752 GB, free: 1.969 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002654/0.3252, allocations: 2.841 MB / 0.5779 GB, free: 15.12 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3252, allocations: 0 / 0.5779 GB, free: 15.12 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006062/0.3313, allocations: 1.017 MB / 0.5789 GB, free: 14.1 MB / 458.7 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.005283/0.3366, allocations: 3.939 MB / 0.5828 GB, free: 9.906 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006144/0.3427, allocations: 3.675 MB / 0.5864 GB, free: 6.273 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.678e-05/0.3427, allocations: 4.25 kB / 0.5864 GB, free: 6.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007409/0.3435, allocations: 0.7074 MB / 0.5871 GB, free: 5.566 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.3456, allocations: 469.1 kB / 0.5875 GB, free: 5.117 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04437/0.39, allocations: 42.89 MB / 0.6294 GB, free: 3.77 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003063/0.393, allocations: 2.639 MB / 0.632 GB, free: 1.09 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002962/0.396, allocations: 1.846 MB / 0.6338 GB, free: 15.24 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002089/0.3981, allocations: 1.883 MB / 0.6356 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of SimCode: time 1.092e-06/0.3981, allocations: 4 kB / 0.6356 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2319/0.6299, allocations: 61.31 MB / 0.6955 GB, free: 168.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/11.03, allocations: 2.969 kB / 0.6955 GB, free: 168.6 MB / 0.5261 GB " [Timeout remaining time 649] (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.00059976 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 12.99510501511395]