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.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",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.001136/0.001136, allocations: 105.1 kB / 17.58 MB, free: 5.559 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.001157/0.001157, allocations: 192.1 kB / 18.51 MB, free: 4.641 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.29/1.29, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.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.001285/0.001285, allocations: 51.92 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08592/0.08721, allocations: 46.63 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.0119/0.09916, allocations: 10.74 MB / 338.1 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008175/0.1074, allocations: 3.877 MB / 342 MB, free: 5.668 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001599/0.1091, allocations: 59.81 kB / 342.1 MB, free: 5.609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004326/0.1134, allocations: 2.234 MB / 344.3 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005246/0.1187, allocations: 1.829 MB / 346.1 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001768/0.1205, allocations: 0.7175 MB / 346.8 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005631/0.1261, allocations: 4.269 MB / 351.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00459/0.1307, allocations: 2.924 MB / 354 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002965/0.1337, allocations: 1.491 MB / 355.5 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003033/0.1368, allocations: 2.083 MB / 357.6 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008455/0.1376, allocations: 296 kB / 357.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002058/0.1397, allocations: 0.9323 MB / 358.8 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001838/0.1415, allocations: 1.819 MB / 360.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002555/0.1441, allocations: 2.12 MB / 362.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005703/0.1498, allocations: 6.199 MB / 369 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1498, allocations: 3.984 kB / 369 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1499, allocations: 0 / 369 MB, free: 10.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000188/0.1501, allocations: 3.938 kB / 369 MB, free: 10.56 MB / 318.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.008505/0.1586, allocations: 4.661 MB / 373.6 MB, free: 5.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.1586, allocations: 8.031 kB / 373.6 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006953/0.1593, allocations: 0.6912 MB / 374.3 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006985/0.1663, allocations: 1.941 MB / 376.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1266/0.2929, allocations: 3.148 MB / 379.4 MB, free: 48.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002274/0.2932, allocations: 230.3 kB / 379.7 MB, free: 48.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000905/0.2941, allocations: 291.1 kB / 379.9 MB, free: 48.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.3069, allocations: 9.637 MB / 389.6 MB, free: 44.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.546e-05/0.3071, allocations: 49.28 kB / 389.6 MB, free: 44.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003226/0.3074, allocations: 146.7 kB / 389.8 MB, free: 44.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002499/0.3099, allocations: 1.913 MB / 391.7 MB, free: 44.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01151/0.3214, allocations: 7.644 MB / 399.3 MB, free: 41.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02717/0.3486, allocations: 37.77 MB / 437.1 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00574/0.3544, allocations: 2.887 MB / 440 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001159/0.3556, allocations: 0.8699 MB / 440.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005325/0.3609, allocations: 3.776 MB / 444.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.361, allocations: 43.22 kB / 444.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=134): time 4.678e-06/0.361, allocations: 4 kB / 444.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=152): time 0.02197/0.383, allocations: 9.147 MB / 453.8 MB, free: 1.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/0.3831, allocations: 141.8 kB / 454 MB, free: 1.133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00583/0.3889, allocations: 3.969 MB / 457.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.655e-05/0.389, allocations: 45.7 kB / 458 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00203/0.391, allocations: 3.097 MB / 461.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005327/0.3916, allocations: 0.6018 MB / 461.7 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00152/0.3931, allocations: 1.159 MB / 462.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.785e-05/0.3932, allocations: 301.1 kB / 463.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00243/0.3956, allocations: 1.557 MB / 464.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004749/0.4004, allocations: 5.34 MB / 470 MB, free: 15.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007721/0.4081, allocations: 7.52 MB / 477.5 MB, free: 5.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001091/0.4083, allocations: 40 kB / 477.6 MB, free: 5.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01055/0.4188, allocations: 6.62 MB / 484.2 MB, free: 15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.419, allocations: 60 kB / 484.3 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001812/0.4192, allocations: 140.5 kB / 484.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.4193, allocations: 176 kB / 484.6 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003757/0.4231, allocations: 1.369 MB / 485.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001933/0.4233, allocations: 259 kB / 486.2 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003305/0.4266, allocations: 292.6 kB / 486.5 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004904/0.4271, allocations: 368 kB / 486.8 MB, free: 12.36 MB / 382.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.00265/0.4298, allocations: 1.974 MB / 488.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005629/0.4303, allocations: 335.6 kB / 489.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002108/0.4325, allocations: 1.25 MB / 490.4 MB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.58e-05/0.4325, allocations: 20 kB / 490.4 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.4325, allocations: 0 / 490.4 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.4325, allocations: 11.91 kB / 490.4 MB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008731/0.4413, allocations: 5.757 MB / 496.2 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-05/0.4413, allocations: 24.06 kB / 496.2 MB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009088/0.4422, allocations: 280.6 kB / 496.5 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.428e-05/0.4423, allocations: 27.94 kB / 496.5 MB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-05/0.4424, allocations: 51.98 kB / 496.5 MB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.54e-05/0.4424, allocations: 39.86 kB / 496.6 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.598e-05/0.4424, allocations: 23.94 kB / 496.6 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003352/0.4458, allocations: 3.223 MB / 499.8 MB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008486/0.4466, allocations: 0.5083 MB / 0.4886 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004265/0.4471, allocations: 51.89 kB / 0.4887 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.4482, allocations: 63.97 kB / 0.4887 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.4483, allocations: 143.4 kB / 0.4889 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-05/0.4484, allocations: 71.98 kB / 0.4889 GB, free: 13.87 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004598/0.453, allocations: 2.459 MB / 0.4913 GB, free: 11.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4531, allocations: 0 / 0.4913 GB, free: 11.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006384/0.4594, allocations: 0.8619 MB / 0.4922 GB, free: 10.54 MB / 398.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.00562/0.4651, allocations: 3.902 MB / 0.496 GB, free: 6.371 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006869/0.472, allocations: 3.79 MB / 0.4997 GB, free: 2.629 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.698e-05/0.472, allocations: 4 kB / 0.4997 GB, free: 2.625 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.4736, allocations: 0.7301 MB / 0.5004 GB, free: 1.898 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003906/0.4775, allocations: 454.9 kB / 0.5008 GB, free: 1.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.191/0.6685, allocations: 45.8 MB / 0.5456 GB, free: 129.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002862/0.6714, allocations: 3.104 MB / 0.5486 GB, free: 128.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003712/0.6752, allocations: 1.769 MB / 0.5503 GB, free: 128.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/0.6766, allocations: 1.796 MB / 0.5521 GB, free: 127.1 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.6766, allocations: 0 / 0.5521 GB, free: 127.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09513/0.7717, allocations: 60.19 MB / 0.6109 GB, free: 74.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.95, allocations: 8 kB / 0.6109 GB, free: 74.93 MB / 430.1 MB (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 --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) 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) Reference file matches