Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002596/0.002596, allocations: 103.5 kB / 20.44 MB, free: 1.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002716/0.002716, allocations: 188.6 kB / 23.7 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 43.94 kB / 370.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2866, allocations: 52.19 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01267/0.2993, allocations: 9.377 MB / 432 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007737/0.307, allocations: 3.691 MB / 435.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.3081, allocations: 75.62 kB / 435.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0044/0.3125, allocations: 2.184 MB / 437.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005466/0.318, allocations: 1.887 MB / 439.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001671/0.3197, allocations: 0.7136 MB / 440.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006254/0.3259, allocations: 4.226 MB / 444.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003858/0.3298, allocations: 2.447 MB / 447.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002757/0.3325, allocations: 1.507 MB / 448.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003331/0.3359, allocations: 2.145 MB / 450.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006378/0.3365, allocations: 295.9 kB / 451.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00175/0.3383, allocations: 0.8387 MB / 452 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001823/0.3401, allocations: 1.873 MB / 453.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002349/0.3424, allocations: 1.561 MB / 455.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01048/0.3529, allocations: 6.485 MB / 461.9 MB, free: 6.883 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.3529, allocations: 8 kB / 461.9 MB, free: 6.875 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3529, allocations: 3.938 kB / 461.9 MB, free: 6.871 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001579/0.3531, allocations: 0 / 461.9 MB, free: 6.871 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01353/0.3666, allocations: 4.672 MB / 466.6 MB, free: 2.141 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.3667, allocations: 8.031 kB / 466.6 MB, free: 2.133 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001428/0.3681, allocations: 0.6912 MB / 467.3 MB, free: 1.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01182/0.3799, allocations: 1.971 MB / 469.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009269/0.3892, allocations: 2.846 MB / 472.1 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003392/0.3895, allocations: 229.6 kB / 472.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001191/0.3907, allocations: 295.8 kB / 472.6 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/0.4112, allocations: 9.66 MB / 482.3 MB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001248/0.4113, allocations: 51.58 kB / 482.3 MB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003864/0.4117, allocations: 143.8 kB / 482.4 MB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003206/0.4149, allocations: 1.919 MB / 484.4 MB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01591/0.4308, allocations: 7.621 MB / 492 MB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04821/0.479, allocations: 36.25 MB / 0.5159 GB, free: 2.426 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006832/0.4858, allocations: 2.313 MB / 0.5181 GB, free: 72 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.4873, allocations: 0.7998 MB / 0.5189 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006384/0.4937, allocations: 2.875 MB / 0.5217 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.4938, allocations: 43.22 kB / 0.5218 GB, free: 12.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.777e-06/0.4938, allocations: 4 kB / 0.5218 GB, free: 12.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02213/0.5159, allocations: 9.107 MB / 0.5306 GB, free: 3.141 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.516, allocations: 149.5 kB / 0.5308 GB, free: 2.961 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1837/0.6997, allocations: 4.152 MB / 0.5348 GB, free: 107.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001918/0.6999, allocations: 45.73 kB / 0.5349 GB, free: 107.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/0.7016, allocations: 3.214 MB / 0.538 GB, free: 106.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004764/0.7021, allocations: 0.6362 MB / 0.5386 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001323/0.7034, allocations: 1.161 MB / 0.5398 GB, free: 105.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.121e-05/0.7035, allocations: 306.8 kB / 0.5401 GB, free: 104.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.7056, allocations: 1.569 MB / 0.5416 GB, free: 104.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003099/0.7087, allocations: 5.341 MB / 0.5468 GB, free: 98.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005661/0.7144, allocations: 7.518 MB / 0.5542 GB, free: 91.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.899e-05/0.7145, allocations: 35.06 kB / 0.5542 GB, free: 91.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008243/0.7227, allocations: 6.634 MB / 0.5607 GB, free: 87.83 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.375e-05/0.7228, allocations: 60 kB / 0.5607 GB, free: 87.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.162e-05/0.7229, allocations: 136 kB / 0.5609 GB, free: 87.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001161/0.723, allocations: 176 kB / 0.561 GB, free: 87.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003224/0.7262, allocations: 1.371 MB / 0.5624 GB, free: 86.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001282/0.7263, allocations: 268.6 kB / 0.5626 GB, free: 86.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003356/0.7297, allocations: 290.5 kB / 0.5629 GB, free: 85.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003057/0.73, allocations: 367.8 kB / 0.5633 GB, free: 85.41 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * 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.002027/0.732, allocations: 1.966 MB / 0.5652 GB, free: 83.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004478/0.7325, allocations: 361.6 kB / 0.5655 GB, free: 83.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0016/0.7341, allocations: 1.252 MB / 0.5667 GB, free: 82.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.907e-05/0.7341, allocations: 16 kB / 0.5668 GB, free: 82.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.7341, allocations: 0 / 0.5668 GB, free: 82.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.7341, allocations: 11.78 kB / 0.5668 GB, free: 82.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006885/0.741, allocations: 5.432 MB / 0.5721 GB, free: 76.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-05/0.741, allocations: 21.25 kB / 0.5721 GB, free: 76.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00081/0.7418, allocations: 275.6 kB / 0.5724 GB, free: 76.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.769e-05/0.7419, allocations: 24 kB / 0.5724 GB, free: 76.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/0.7419, allocations: 51.98 kB / 0.5724 GB, free: 76.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-05/0.7419, allocations: 35.86 kB / 0.5725 GB, free: 76.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.046e-05/0.7419, allocations: 27.88 kB / 0.5725 GB, free: 76.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.7446, allocations: 3.242 MB / 0.5757 GB, free: 72.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008244/0.7454, allocations: 353.5 kB / 0.576 GB, free: 72.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003388/0.7458, allocations: 47.98 kB / 0.576 GB, free: 72.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.7468, allocations: 55.97 kB / 0.5761 GB, free: 72.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.747, allocations: 155.3 kB / 0.5762 GB, free: 72.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.693e-05/0.747, allocations: 67.91 kB / 0.5763 GB, free: 72.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002763/0.7498, allocations: 2.447 MB / 0.5787 GB, free: 69.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7498, allocations: 0 / 0.5787 GB, free: 69.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004358/0.7542, allocations: 0.8646 MB / 0.5795 GB, free: 68.82 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (142): * Single equations (assignments): 139 * 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.003297/0.7574, allocations: 3.904 MB / 0.5833 GB, free: 64.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005435/0.7629, allocations: 3.524 MB / 0.5868 GB, free: 61.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.706e-05/0.7629, allocations: 256 / 0.5868 GB, free: 61.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009609/0.7639, allocations: 0.6907 MB / 0.5875 GB, free: 60.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003488/0.7674, allocations: 454.5 kB / 0.5879 GB, free: 60.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04646/0.8138, allocations: 40.39 MB / 0.6273 GB, free: 13.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003045/0.8169, allocations: 2.557 MB / 0.6298 GB, free: 10.78 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003455/0.8203, allocations: 1.761 MB / 0.6316 GB, free: 9.008 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001965/0.8223, allocations: 1.796 MB / 0.6333 GB, free: 7.211 MB / 446.1 MB Notification: Performance of SimCode: time 2.304e-06/0.8223, allocations: 0 / 0.6333 GB, free: 7.211 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1804/1.003, allocations: 56.01 MB / 0.688 GB, free: 8 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.13/16.13, allocations: 11.03 kB / 0.688 GB, free: 0 / 494.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.229104549624026]