Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.0009124/0.0009124, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0009757/0.0009757, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.877/0.877, allocations: 177.1 MB / 204.2 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.52e-05/1.644e-05, allocations: 6.281 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.002157/0.002174, allocations: 1.707 MB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004024/0.002576, allocations: 167.3 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.611e-05/0.002652, allocations: 0 / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.062e-05/0.002693, allocations: 11.88 kB / 326.5 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.002814, allocations: 11.92 kB / 326.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001919/0.003006, allocations: 58.38 kB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.537e-05/0.003102, allocations: 51.84 kB / 326.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.936e-05/0.003191, allocations: 19.98 kB / 326.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.516e-05/0.003236, allocations: 31.91 kB / 326.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.99e-05/0.003276, allocations: 15.97 kB / 326.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.003297, allocations: 7.938 kB / 326.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.076e-05/0.003308, allocations: 8 kB / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.237e-05/0.00335, allocations: 19.92 kB / 326.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.076e-05/0.003371, allocations: 15.98 kB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.003475, allocations: 71.66 kB / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.714e-06/0.003476, allocations: 0 / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.003477, allocations: 0 / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.003481, allocations: 0 / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003357/0.003816, allocations: 316.9 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.00385, allocations: 8.031 kB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.87e-05/0.003879, allocations: 38.75 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.215e-05/0.003901, allocations: 8.891 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.004068, allocations: 145.6 kB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.004077, allocations: 12.31 kB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.004086, allocations: 4.375 kB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.00433, allocations: 162.3 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.004336, allocations: 192 / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.004345, allocations: 8.375 kB / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.00435, allocations: 4.125 kB / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.508e-05/0.004415, allocations: 39.92 kB / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002718/0.004687, allocations: 321 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000165/0.004852, allocations: 115.8 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.418e-05/0.004906, allocations: 50.69 kB / 328 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.004928, allocations: 11.92 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.535e-05/0.004943, allocations: 34.56 kB / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.153e-06/0.004944, allocations: 0 / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002123/0.005157, allocations: 137.6 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.005203, allocations: 106.8 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.427e-05/0.005277, allocations: 136.6 kB / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.776e-06/0.005286, allocations: 29.7 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.417e-05/0.00532, allocations: 84.14 kB / 328.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.005335, allocations: 15.88 kB / 328.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.326e-05/0.005358, allocations: 17.67 kB / 328.5 MB, free: 11.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.594e-05/0.005424, allocations: 314.8 kB / 328.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.985e-05/0.005444, allocations: 7.984 kB / 328.8 MB, free: 11.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.99e-05/0.005464, allocations: 21.97 kB / 328.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.738e-05/0.005501, allocations: 33.64 kB / 328.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.005503, allocations: 0 / 328.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.473e-05/0.005557, allocations: 49.62 kB / 329 MB, free: 11.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.005569, allocations: 11.98 kB / 329 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.005573, allocations: 0 / 329 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.005584, allocations: 8.062 kB / 329 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.372e-05/0.005608, allocations: 11.94 kB / 329 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.005612, allocations: 0 / 329 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.427e-05/0.005626, allocations: 4 kB / 329 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-06/0.00563, allocations: 0 / 329 MB, free: 11.24 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * 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 5.435e-05/0.005684, allocations: 121.8 kB / 329.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.829e-05/0.005752, allocations: 73.58 kB / 329.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.308e-05/0.005775, allocations: 12.78 kB / 329.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.005779, allocations: 7.984 kB / 329.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.005782, allocations: 0 / 329.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.005785, allocations: 4 kB / 329.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001388/0.005924, allocations: 152.7 kB / 329.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.005929, allocations: 3.938 kB / 329.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.608e-05/0.005965, allocations: 27.92 kB / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.005967, allocations: 0 / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.005972, allocations: 0 / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.005974, allocations: 4 kB / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.005975, allocations: 0 / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/0.006182, allocations: 312.3 kB / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.709e-05/0.006209, allocations: 19.94 kB / 329.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.308e-06/0.006218, allocations: 4 kB / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.331e-05/0.006272, allocations: 8.031 kB / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.08e-05/0.006292, allocations: 7.938 kB / 329.7 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.006296, allocations: 4 kB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.55e-05/0.006342, allocations: 111.2 kB / 329.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006342, allocations: 0 / 329.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001633/0.006505, allocations: 7.938 kB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (10): * Single equations (assignments): 10 * Array equations: 0 * 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.0003272/0.006832, allocations: 0.8577 MB / 330.7 MB, free: 9.402 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.054e-05/0.006923, allocations: 39.92 kB / 330.7 MB, free: 9.363 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.006924, allocations: 0 / 330.7 MB, free: 9.363 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.929e-05/0.006943, allocations: 11.98 kB / 330.8 MB, free: 9.352 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002914/0.007235, allocations: 46.44 kB / 330.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00081/0.008045, allocations: 1.414 MB / 332.2 MB, free: 7.785 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.854e-05/0.008103, allocations: 87.27 kB / 332.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.888e-05/0.008122, allocations: 3.75 kB / 332.3 MB, free: 7.676 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.705e-05/0.008159, allocations: 24.48 kB / 332.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.00816, allocations: 0 / 332.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01385/0.02201, allocations: 2.474 MB / 334.8 MB, free: 5.312 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.883/6.905, allocations: 0 / 334.8 MB, free: 5.312 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,sample2.y,hold1.y Variables in the result:feedback.u1,feedback.u2,feedback.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sample2.u,sample2.y,step.height,step.offset,step.startTime,step.y,time [Calling sys.exit(0), Time elapsed: 8.53248658310622]