Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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.0009158/0.0009158, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001793/0.001793, allocations: 170 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.9289/0.9289, allocations: 177.1 MB / 204.3 MB, free: 5.727 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.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 324.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.168e-05/2.331e-05, allocations: 6.219 kB / 324.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002228/0.002251, allocations: 1.484 MB / 326.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001807/0.002432, allocations: 31.84 kB / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.132e-05/0.002493, allocations: 0 / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.093e-05/0.002524, allocations: 3.938 kB / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.409e-05/0.002568, allocations: 7.938 kB / 326.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.00282, allocations: 31.17 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.4e-05/0.002914, allocations: 35.91 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.003018, allocations: 11.98 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.896e-05/0.003067, allocations: 12 kB / 326.2 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.473e-05/0.003102, allocations: 11.92 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.003125, allocations: 4 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.626e-06/0.003134, allocations: 4 kB / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.003152, allocations: 3.984 kB / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.225e-05/0.003184, allocations: 15.92 kB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.475e-05/0.003269, allocations: 27.91 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.003271, allocations: 4 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.003272, allocations: 0 / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.003276, allocations: 0 / 326.3 MB, free: 14.12 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003456/0.003622, allocations: 277.2 kB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.003663, allocations: 8.031 kB / 326.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.522e-05/0.003698, allocations: 38.73 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.34e-05/0.003721, allocations: 4.891 kB / 326.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.003889, allocations: 117.8 kB / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.003911, allocations: 8.25 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.003921, allocations: 4.375 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.004178, allocations: 119.8 kB / 326.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.004186, allocations: 4.188 kB / 326.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.004194, allocations: 384 / 326.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.004201, allocations: 8.109 kB / 326.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.788e-05/0.004269, allocations: 27.97 kB / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001102/0.004379, allocations: 128.7 kB / 327 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.004487, allocations: 54.48 kB / 327 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.744e-05/0.004535, allocations: 24.92 kB / 327.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.004546, allocations: 8 kB / 327.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.004571, allocations: 30.56 kB / 327.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.51e-07/0.004572, allocations: 0 / 327.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.000189/0.004761, allocations: 77.66 kB / 327.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.004811, allocations: 55.34 kB / 327.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.859e-05/0.00487, allocations: 109.8 kB / 327.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.00488, allocations: 33.64 kB / 327.4 MB, free: 12.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.252e-05/0.004913, allocations: 84.14 kB / 327.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.034e-05/0.004923, allocations: 0 / 327.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-05/0.004946, allocations: 17.72 kB / 327.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.732e-05/0.005024, allocations: 318.8 kB / 327.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.807e-06/0.005033, allocations: 0 / 327.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.032e-06/0.005039, allocations: 4 kB / 327.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.236e-05/0.005061, allocations: 12.86 kB / 327.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.005063, allocations: 0 / 327.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.676e-05/0.005099, allocations: 37.66 kB / 327.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.005112, allocations: 4 kB / 327.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.005117, allocations: 3.984 kB / 327.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.005128, allocations: 0 / 327.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.646e-05/0.005174, allocations: 11.97 kB / 327.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.005179, allocations: 4 kB / 327.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.013e-05/0.005189, allocations: 7.938 kB / 327.9 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-06/0.005194, allocations: 4 kB / 327.9 MB, free: 12.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.456e-05/0.005249, allocations: 105.8 kB / 328 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.687e-05/0.005326, allocations: 65.92 kB / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.991e-05/0.005346, allocations: 4 kB / 328 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.005347, allocations: 0 / 328 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.005355, allocations: 7.938 kB / 328 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.00536, allocations: 7.984 kB / 328.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.038e-05/0.005421, allocations: 124.8 kB / 328.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.005422, allocations: 4 kB / 328.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.915e-05/0.005451, allocations: 11.98 kB / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.005452, allocations: 0 / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-06/0.005457, allocations: 0 / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.005459, allocations: 0 / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.005462, allocations: 7.875 kB / 328.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001078/0.00557, allocations: 93.28 kB / 328.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.604e-06/0.005577, allocations: 8.031 kB / 328.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.053e-05/0.005588, allocations: 0 / 328.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.441e-05/0.005602, allocations: 8 kB / 328.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-06/0.005606, allocations: 7.938 kB / 328.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.005609, allocations: 0 / 328.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.056e-05/0.005639, allocations: 87.27 kB / 328.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005639, allocations: 0 / 328.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001178/0.005757, allocations: 4 kB / 328.4 MB, free: 11.69 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0003317/0.006089, allocations: 0.6475 MB / 329.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.486e-05/0.006174, allocations: 19.98 kB / 329.1 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.006176, allocations: 3.938 kB / 329.1 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.9e-07/0.006176, allocations: 0 / 329.1 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00021/0.006386, allocations: 32.08 kB / 329.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006891/0.007075, allocations: 1.114 MB / 330.2 MB, free: 9.758 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.03e-05/0.007115, allocations: 67.28 kB / 330.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.804e-05/0.007134, allocations: 0 / 330.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.989e-05/0.007173, allocations: 20.48 kB / 330.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.007174, allocations: 0 / 330.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01572/0.0229, allocations: 2.008 MB / 332.3 MB, free: 7.762 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.032/7.055, allocations: 6.594 kB / 332.3 MB, free: 7.758 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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: 8.7975720949471]