Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.004471/0.004471, allocations: 102 kB / 21.96 MB, free: 5.203 MB / 14.72 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.001274/0.001274, allocations: 213.5 kB / 25.25 MB, free: 3.141 MB / 14.72 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 1.268/1.268, allocations: 207.7 MB / 236.1 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 47.94 kB / 348 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2268, allocations: 49.16 MB / 397.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008358/0.2351, allocations: 9.353 MB / 406.5 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00667/0.2418, allocations: 3.687 MB / 410.2 MB, free: 452 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001707/0.2435, allocations: 78.5 kB / 410.3 MB, free: 424 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004134/0.2477, allocations: 2.183 MB / 412.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004968/0.2526, allocations: 1.905 MB / 414.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.2542, allocations: 0.7182 MB / 415.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005485/0.2597, allocations: 4.256 MB / 419.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002821/0.2625, allocations: 2.475 MB / 421.8 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002879/0.2654, allocations: 1.523 MB / 423.3 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003724/0.2691, allocations: 2.272 MB / 425.6 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006178/0.2698, allocations: 300 kB / 425.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001881/0.2716, allocations: 0.8505 MB / 426.7 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001793/0.2734, allocations: 1.873 MB / 428.6 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001853/0.2753, allocations: 1.576 MB / 430.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006847/0.2821, allocations: 6.512 MB / 436.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2821, allocations: 0 / 436.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2821, allocations: 0 / 436.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001442/0.2823, allocations: 3.984 kB / 436.7 MB, free: 11.43 MB / 350.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.007546/0.2898, allocations: 4.695 MB / 441.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.2899, allocations: 19.98 kB / 441.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001002/0.29, allocations: 102 kB / 441.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000804/0.2908, allocations: 0.6951 MB / 442.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006959/0.2977, allocations: 1.967 MB / 444.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005601/0.3033, allocations: 3.154 MB / 447.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.3035, allocations: 229.6 kB / 447.6 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005646/0.3041, allocations: 291.8 kB / 447.8 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01446/0.3186, allocations: 9.664 MB / 457.5 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-05/0.3186, allocations: 47.58 kB / 457.6 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003537/0.319, allocations: 147.9 kB / 457.7 MB, free: 5.527 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002772/0.3218, allocations: 1.919 MB / 459.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01405/0.3358, allocations: 7.629 MB / 467.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04206/0.3779, allocations: 36.26 MB / 0.4917 GB, free: 6.523 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006171/0.384, allocations: 2.338 MB / 0.494 GB, free: 4.141 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001191/0.3852, allocations: 0.7952 MB / 0.4948 GB, free: 3.336 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00524/0.3905, allocations: 2.872 MB / 0.4976 GB, free: 448 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.3905, allocations: 47.22 kB / 0.4976 GB, free: 392 kB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.897e-06/0.3905, allocations: 3.938 kB / 0.4976 GB, free: 388 kB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02119/0.4117, allocations: 9.224 MB / 0.5066 GB, free: 7.086 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.076e-05/0.4118, allocations: 141.5 kB / 0.5068 GB, free: 6.918 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005116/0.4169, allocations: 3.982 MB / 0.5106 GB, free: 2.906 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.205e-05/0.417, allocations: 49.69 kB / 0.5107 GB, free: 2.852 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002405/0.4194, allocations: 3.224 MB / 0.5138 GB, free: 15.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005695/0.42, allocations: 0.632 MB / 0.5145 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00134/0.4213, allocations: 1.163 MB / 0.5156 GB, free: 13.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.4214, allocations: 301.1 kB / 0.5159 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002341/0.4238, allocations: 1.561 MB / 0.5174 GB, free: 11.92 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005403/0.4292, allocations: 5.334 MB / 0.5226 GB, free: 4.691 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008757/0.4379, allocations: 7.522 MB / 0.53 GB, free: 11.28 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.201e-05/0.438, allocations: 36.28 kB / 0.53 GB, free: 11.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01043/0.4485, allocations: 6.635 MB / 0.5365 GB, free: 4.605 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.97e-05/0.4485, allocations: 64.09 kB / 0.5365 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/0.4487, allocations: 139.9 kB / 0.5367 GB, free: 4.406 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001665/0.4488, allocations: 180.1 kB / 0.5368 GB, free: 4.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003633/0.4525, allocations: 1.369 MB / 0.5382 GB, free: 2.859 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002097/0.4527, allocations: 263 kB / 0.5384 GB, free: 2.602 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003024/0.4557, allocations: 287.7 kB / 0.5387 GB, free: 2.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004227/0.4561, allocations: 363.9 kB / 0.5391 GB, free: 1.969 MB / 462.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.002632/0.4588, allocations: 1.982 MB / 0.541 GB, free: 15.97 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005033/0.4593, allocations: 353.6 kB / 0.5413 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.4613, allocations: 1.246 MB / 0.5425 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.289e-05/0.4613, allocations: 20 kB / 0.5426 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.4613, allocations: 8.062 kB / 0.5426 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.4613, allocations: 11.91 kB / 0.5426 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008358/0.4697, allocations: 5.441 MB / 0.5479 GB, free: 8.586 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-05/0.4697, allocations: 20 kB / 0.5479 GB, free: 8.566 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009206/0.4706, allocations: 283.6 kB / 0.5482 GB, free: 8.289 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.382e-05/0.4706, allocations: 24 kB / 0.5482 GB, free: 8.266 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.262e-05/0.4707, allocations: 51.98 kB / 0.5483 GB, free: 8.215 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.999e-05/0.4708, allocations: 35.86 kB / 0.5483 GB, free: 8.18 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.969e-05/0.4708, allocations: 27.88 kB / 0.5483 GB, free: 8.152 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003874/0.4747, allocations: 3.234 MB / 0.5515 GB, free: 4.656 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/0.4757, allocations: 465.4 kB / 0.5519 GB, free: 4.199 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004731/0.4761, allocations: 51.92 kB / 0.552 GB, free: 4.148 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.4772, allocations: 63.95 kB / 0.552 GB, free: 4.086 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.4774, allocations: 155.3 kB / 0.5522 GB, free: 3.934 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.4775, allocations: 67.98 kB / 0.5522 GB, free: 3.867 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003513/0.481, allocations: 2.463 MB / 0.5546 GB, free: 1.391 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.481, allocations: 0 / 0.5546 GB, free: 1.391 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003923/0.4849, allocations: 0.8593 MB / 0.5555 GB, free: 0.5312 MB / 478.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.1645/0.6494, allocations: 3.916 MB / 0.5593 GB, free: 140.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005439/0.6549, allocations: 3.509 MB / 0.5627 GB, free: 139.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.371e-05/0.6549, allocations: 5.938 kB / 0.5627 GB, free: 139.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009011/0.6558, allocations: 0.6876 MB / 0.5634 GB, free: 139.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002716/0.6585, allocations: 452.2 kB / 0.5638 GB, free: 138.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04005/0.6986, allocations: 40.55 MB / 0.6034 GB, free: 107.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002243/0.7008, allocations: 2.567 MB / 0.606 GB, free: 105.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002882/0.7037, allocations: 1.767 MB / 0.6077 GB, free: 103.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/0.705, allocations: 1.8 MB / 0.6094 GB, free: 101.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.192e-06/0.705, allocations: 0 / 0.6094 GB, free: 101.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08426/0.7893, allocations: 58.61 MB / 0.6667 GB, free: 43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.6/20.39, allocations: 11.95 kB / 0.6667 GB, free: 42.99 MB / 478.1 MB " [Timeout remaining time 639] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 23.725346504012123]