Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.0008713/0.0008713, allocations: 76.08 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.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.0009154/0.0009154, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8932/0.8932, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.974e-05/2.147e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.002497/0.002519, allocations: 1.669 MB / 320.1 MB, free: 4.668 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004235/0.002942, allocations: 171.3 kB / 320.3 MB, free: 4.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.003044, allocations: 0 / 320.3 MB, free: 4.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.803e-05/0.003092, allocations: 7.875 kB / 320.3 MB, free: 4.492 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.003229, allocations: 15.81 kB / 320.3 MB, free: 4.477 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.003453, allocations: 47.83 kB / 320.4 MB, free: 4.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.003554, allocations: 55.83 kB / 320.4 MB, free: 4.375 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.003663, allocations: 23.97 kB / 320.4 MB, free: 4.352 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.669e-05/0.00372, allocations: 35.91 kB / 320.5 MB, free: 4.316 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.961e-05/0.003769, allocations: 15.91 kB / 320.5 MB, free: 4.301 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/0.003796, allocations: 8 kB / 320.5 MB, free: 4.293 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.036e-05/0.003807, allocations: 4 kB / 320.5 MB, free: 4.289 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.469e-05/0.003861, allocations: 19.92 kB / 320.5 MB, free: 4.27 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.926e-05/0.00389, allocations: 19.92 kB / 320.5 MB, free: 4.25 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000135/0.004025, allocations: 63.72 kB / 320.6 MB, free: 4.188 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.004029, allocations: 4 kB / 320.6 MB, free: 4.184 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.004031, allocations: 0 / 320.6 MB, free: 4.184 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.004036, allocations: 3.938 kB / 320.6 MB, free: 4.18 MB / 282.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.0005241/0.00456, allocations: 314 kB / 320.9 MB, free: 3.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.24e-05/0.004623, allocations: 8.922 kB / 320.9 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.141e-05/0.004674, allocations: 42.73 kB / 321 MB, free: 3.781 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.004715, allocations: 16.84 kB / 321 MB, free: 3.766 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002796/0.004995, allocations: 133.6 kB / 321.1 MB, free: 3.609 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.005008, allocations: 8.312 kB / 321.1 MB, free: 3.602 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.00502, allocations: 8.375 kB / 321.1 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003719/0.005392, allocations: 170.3 kB / 321.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.005402, allocations: 192 / 321.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.005414, allocations: 384 / 321.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.005421, allocations: 4.125 kB / 321.3 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.56e-05/0.005507, allocations: 43.89 kB / 321.3 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003635/0.00587, allocations: 329 kB / 321.7 MB, free: 2.988 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.006071, allocations: 111.8 kB / 321.8 MB, free: 2.852 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.46e-05/0.006136, allocations: 50.62 kB / 321.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.006159, allocations: 7.938 kB / 321.8 MB, free: 2.785 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.00618, allocations: 38.56 kB / 321.9 MB, free: 2.738 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.006181, allocations: 0 / 321.9 MB, free: 2.738 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002349/0.006416, allocations: 121.7 kB / 322 MB, free: 2.613 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.00647, allocations: 115.2 kB / 322.1 MB, free: 2.477 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.582e-05/0.006566, allocations: 140.6 kB / 322.2 MB, free: 2.332 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.006576, allocations: 25.7 kB / 322.3 MB, free: 2.301 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.051e-05/0.006617, allocations: 92.14 kB / 322.3 MB, free: 2.207 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.006633, allocations: 12.03 kB / 322.4 MB, free: 2.195 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-05/0.006662, allocations: 17.72 kB / 322.4 MB, free: 2.172 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.006759, allocations: 314.8 kB / 322.7 MB, free: 1.855 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.095e-05/0.00679, allocations: 8 kB / 322.7 MB, free: 1.848 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.023e-05/0.00682, allocations: 21.7 kB / 322.7 MB, free: 1.82 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.722e-05/0.006867, allocations: 41.64 kB / 322.8 MB, free: 1.773 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.006869, allocations: 0 / 322.8 MB, free: 1.773 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.062e-05/0.006939, allocations: 57.58 kB / 322.8 MB, free: 1.711 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.006953, allocations: 4 kB / 322.8 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.006959, allocations: 0 / 322.8 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.006972, allocations: 0 / 322.8 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.344e-05/0.007005, allocations: 11.92 kB / 322.8 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.007012, allocations: 12.05 kB / 322.8 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.575e-05/0.007028, allocations: 0 / 322.8 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-06/0.007032, allocations: 0 / 322.8 MB, free: 1.684 MB / 282.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 6.095e-05/0.007093, allocations: 117.8 kB / 323 MB, free: 1.559 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.577e-05/0.007169, allocations: 77.58 kB / 323 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.091e-05/0.0072, allocations: 12.77 kB / 323 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.007203, allocations: 4 kB / 323 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.007208, allocations: 0 / 323 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.007211, allocations: 0 / 323 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001553/0.007366, allocations: 152.7 kB / 323.2 MB, free: 1.266 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.007368, allocations: 7.938 kB / 323.2 MB, free: 1.258 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.629e-05/0.007425, allocations: 27.92 kB / 323.2 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.007428, allocations: 0 / 323.2 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.007436, allocations: 4 kB / 323.2 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.007438, allocations: 0 / 323.2 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.007439, allocations: 3.938 kB / 323.2 MB, free: 1.223 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002643/0.007703, allocations: 308.3 kB / 323.5 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.007742, allocations: 19.94 kB / 323.6 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.007756, allocations: 4 kB / 323.6 MB, free: 0.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.847e-05/0.007815, allocations: 15.92 kB / 323.6 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.86e-05/0.007843, allocations: 3.984 kB / 323.6 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-06/0.007848, allocations: 4 kB / 323.6 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.545e-05/0.007904, allocations: 111.2 kB / 323.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007904, allocations: 0 / 323.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001809/0.008085, allocations: 15.94 kB / 323.7 MB, free: 0.7266 MB / 282.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.0004297/0.008515, allocations: 0.8461 MB / 324.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001071/0.008622, allocations: 39.92 kB / 324.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.008623, allocations: 0 / 324.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.09e-05/0.008644, allocations: 11.98 kB / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.00899, allocations: 42.3 kB / 324.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009364/0.009926, allocations: 1.421 MB / 326.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.755e-05/0.009994, allocations: 91.27 kB / 326.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.517e-05/0.01002, allocations: 0 / 326.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/0.01006, allocations: 20.5 kB / 326.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01006, allocations: 0 / 326.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01611/0.02617, allocations: 2.468 MB / 328.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.822/6.848, allocations: 7.984 kB / 328.7 MB, free: 11.75 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.534194799140096]