Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.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.001798/0.001798, allocations: 113 kB / 18.49 MB, free: 4.539 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.002214/0.002214, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.393/1.393, allocations: 230.6 MB / 254.8 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.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 47.92 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1026, allocations: 53.33 MB / 427 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep): time 0.002765/0.1054, allocations: 1.482 MB / 428.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002997/0.1057, allocations: 99.72 kB / 428.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.727e-05/0.1057, allocations: 7.938 kB / 428.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.156e-05/0.1058, allocations: 0 / 428.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.634e-05/0.1058, allocations: 3.938 kB / 428.6 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.1061, allocations: 27.92 kB / 428.6 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.345e-05/0.1062, allocations: 31.91 kB / 428.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.1063, allocations: 3.938 kB / 428.7 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.359e-05/0.1063, allocations: 15.94 kB / 428.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.788e-05/0.1063, allocations: 11.92 kB / 428.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.774e-05/0.1064, allocations: 4 kB / 428.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.416e-06/0.1064, allocations: 0 / 428.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.858e-05/0.1064, allocations: 8 kB / 428.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.13e-05/0.1064, allocations: 15.88 kB / 428.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.774e-05/0.1065, allocations: 31.83 kB / 428.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.1065, allocations: 3.984 kB / 428.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1065, allocations: 0 / 428.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.1065, allocations: 0 / 428.8 MB, free: 3.023 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.0004995/0.107, allocations: 339.4 kB / 429.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.1071, allocations: 8.031 kB / 429.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.016e-05/0.1071, allocations: 192 / 429.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.687e-05/0.1071, allocations: 42.75 kB / 429.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.45e-05/0.1072, allocations: 4.891 kB / 429.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.1074, allocations: 180.3 kB / 429.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.1074, allocations: 384 / 429.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.1074, allocations: 8.375 kB / 429.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.1077, allocations: 103.6 kB / 429.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1078, allocations: 0 / 429.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.1078, allocations: 4 kB / 429.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1078, allocations: 0 / 429.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.117e-05/0.1078, allocations: 15.98 kB / 429.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001719/0.108, allocations: 161.6 kB / 429.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.1082, allocations: 58.53 kB / 429.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.153e-05/0.1082, allocations: 24.83 kB / 429.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.1083, allocations: 0 / 429.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.1083, allocations: 38.5 kB / 429.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.1083, allocations: 0 / 429.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002338/0.1085, allocations: 69.66 kB / 429.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.1086, allocations: 59.34 kB / 429.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.644e-05/0.1087, allocations: 101.9 kB / 430 MB, free: 1.621 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.1087, allocations: 29.7 kB / 430 MB, free: 1.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.1087, allocations: 88.11 kB / 430.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.041e-05/0.1088, allocations: 4 kB / 430.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.963e-05/0.1088, allocations: 13.72 kB / 430.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1089, allocations: 314.8 kB / 430.4 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.469e-05/0.1089, allocations: 4 kB / 430.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.291e-05/0.109, allocations: 31.42 kB / 430.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.468e-05/0.109, allocations: 39.38 kB / 430.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.109, allocations: 0 / 430.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.708e-05/0.1091, allocations: 61.56 kB / 430.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1091, allocations: 7.938 kB / 430.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1091, allocations: 4 kB / 430.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.1092, allocations: 0 / 430.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.076e-05/0.1092, allocations: 12.22 kB / 430.6 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.1092, allocations: 0 / 430.6 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.923e-05/0.1092, allocations: 3.953 kB / 430.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.1092, allocations: 4 kB / 430.6 MB, free: 0.9609 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.597e-05/0.1093, allocations: 118 kB / 430.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.1094, allocations: 61.86 kB / 430.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.477e-05/0.1095, allocations: 7.906 kB / 430.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1095, allocations: 0 / 430.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1095, allocations: 4 kB / 430.8 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1095, allocations: 0 / 430.8 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.1096, allocations: 161.6 kB / 430.9 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1096, allocations: 0 / 430.9 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.718e-05/0.1096, allocations: 11.94 kB / 430.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1096, allocations: 3.938 kB / 430.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.1097, allocations: 4 kB / 430.9 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1097, allocations: 4 kB / 430.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1097, allocations: 3.938 kB / 430.9 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.1098, allocations: 85.06 kB / 431 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.452e-05/0.1098, allocations: 81.05 kB / 431.1 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.1099, allocations: 3.984 kB / 431.1 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.661e-05/0.1099, allocations: 4 kB / 431.1 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.434e-06/0.1099, allocations: 4 kB / 431.1 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.1099, allocations: 0 / 431.1 MB, free: 308 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.446e-05/0.1099, allocations: 83.28 kB / 431.2 MB, free: 224 kB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1099, allocations: 0 / 431.2 MB, free: 224 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001887/0.1101, allocations: 4 kB / 431.2 MB, free: 220 kB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0004846/0.1106, allocations: 0.6357 MB / 431.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001319/0.1107, allocations: 27.92 kB / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1107, allocations: 0 / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.82e-07/0.1107, allocations: 0 / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.111, allocations: 18.03 kB / 431.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.112, allocations: 1.162 MB / 433 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.1123, allocations: 0.6768 MB / 433.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.726e-05/0.1123, allocations: 4 kB / 433.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.213e-05/0.1124, allocations: 7.438 kB / 433.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1124, allocations: 0 / 433.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.1335, allocations: 1.307 MB / 435 MB, free: 12.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.688/7.821, allocations: 11.92 kB / 435 MB, free: 12.36 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.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.358154284011107]