Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.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.001471/0.001471, allocations: 123.4 kB / 17.79 MB, free: 5.359 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.001633/0.001633, allocations: 204.3 kB / 20.74 MB, free: 2.414 MB / 14.72 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 1.407/1.407, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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.TickBasedRamp,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1021, allocations: 53.32 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002771/0.1049, allocations: 1.482 MB / 427.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001879/0.1051, allocations: 35.84 kB / 427.8 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.566e-05/0.1052, allocations: 0 / 427.8 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.159e-05/0.1052, allocations: 3.938 kB / 427.8 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.422e-05/0.1052, allocations: 11.92 kB / 427.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.1055, allocations: 23.98 kB / 427.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001/0.1056, allocations: 39.91 kB / 427.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.1057, allocations: 7.984 kB / 427.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.7e-05/0.1057, allocations: 19.86 kB / 427.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.687e-05/0.1058, allocations: 19.92 kB / 428 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.1058, allocations: 4 kB / 428 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.1058, allocations: 4 kB / 428 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.254e-05/0.1058, allocations: 11.98 kB / 428 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.14e-05/0.1059, allocations: 11.88 kB / 428 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001098/0.106, allocations: 39.81 kB / 428 MB, free: 3.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.106, allocations: 8 kB / 428 MB, free: 3.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.106, allocations: 0 / 428 MB, free: 3.059 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.106, allocations: 0 / 428 MB, free: 3.059 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005884/0.1066, allocations: 363.3 kB / 428.4 MB, free: 2.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.1066, allocations: 8.031 kB / 428.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.176e-05/0.1067, allocations: 30.75 kB / 428.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.985e-05/0.1067, allocations: 8.891 kB / 428.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/0.107, allocations: 180.3 kB / 428.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.107, allocations: 8.375 kB / 428.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.107, allocations: 4.375 kB / 428.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/0.1076, allocations: 163.7 kB / 428.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.1076, allocations: 7.922 kB / 428.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.1076, allocations: 0 / 428.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.1076, allocations: 4 kB / 428.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.1079, allocations: 39.95 kB / 428.8 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001755/0.1081, allocations: 169.6 kB / 429 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.1084, allocations: 82.45 kB / 429.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.1086, allocations: 40.89 kB / 429.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.1086, allocations: 0 / 429.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.1086, allocations: 38.55 kB / 429.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.1086, allocations: 0 / 429.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005379/0.1092, allocations: 117.5 kB / 429.3 MB, free: 1.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.1092, allocations: 55.41 kB / 429.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.956e-05/0.1093, allocations: 105.8 kB / 429.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.1093, allocations: 29.7 kB / 429.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.239e-05/0.1094, allocations: 88.08 kB / 429.6 MB, free: 1.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.496e-05/0.1094, allocations: 3.953 kB / 429.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.1094, allocations: 21.7 kB / 429.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1096, allocations: 314.8 kB / 429.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.838e-05/0.1096, allocations: 12 kB / 429.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.433e-05/0.1096, allocations: 27.42 kB / 429.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.818e-05/0.1097, allocations: 35.38 kB / 430 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.1097, allocations: 8 kB / 430 MB, free: 0.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.962e-05/0.1098, allocations: 57.62 kB / 430 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1098, allocations: 13.97 kB / 430 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.1098, allocations: 3.938 kB / 430 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1098, allocations: 0 / 430 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.155e-05/0.1099, allocations: 8 kB / 430 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.1099, allocations: 3.938 kB / 430.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.152e-05/0.1099, allocations: 4 kB / 430.1 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.1099, allocations: 0 / 430.1 MB, free: 0.7812 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.ramp.counter,ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.03e-05/0.11, allocations: 118 kB / 430.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003091/0.1103, allocations: 93.52 kB / 430.3 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.23e-05/0.1103, allocations: 11.91 kB / 430.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1103, allocations: 0 / 430.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1103, allocations: 0 / 430.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1103, allocations: 0 / 430.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.1105, allocations: 157.7 kB / 430.4 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1105, allocations: 0 / 430.4 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.1106, allocations: 19.97 kB / 430.4 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1106, allocations: 7.938 kB / 430.5 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.1106, allocations: 3.938 kB / 430.5 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1106, allocations: 0 / 430.5 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1106, allocations: 0 / 430.5 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.1109, allocations: 117 kB / 430.6 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.261e-05/0.111, allocations: 77.11 kB / 430.6 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.111, allocations: 7.938 kB / 430.7 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.888e-05/0.1111, allocations: 16.11 kB / 430.7 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.425e-06/0.1111, allocations: 4 kB / 430.7 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.1111, allocations: 0 / 430.7 MB, free: 48 kB / 350.1 MB Notification: Performance of sorting global known variables: time 6.568e-05/0.1111, allocations: 91.2 kB / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1111, allocations: 0 / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001849/0.1113, allocations: 8 kB / 430.8 MB, free: 15.95 MB / 366.1 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 (ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.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.0009112/0.1122, allocations: 0.6908 MB / 431.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000215/0.1124, allocations: 43.91 kB / 431.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1124, allocations: 0 / 431.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.1124, allocations: 0 / 431.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.1128, allocations: 43.98 kB / 431.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.114, allocations: 1.189 MB / 432.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.1143, allocations: 0.6807 MB / 433.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.539e-05/0.1144, allocations: 11.88 kB / 433.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.224e-05/0.1144, allocations: 15.42 kB / 433.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1144, allocations: 0 / 433.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.1397, allocations: 1.491 MB / 434.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.689/7.829, allocations: 14.75 kB / 435 MB, free: 11.73 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.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: 10.256548626115546]