Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001304/0.001304, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001252/0.001252, allocations: 190.9 kB / 20.73 MB, free: 2.328 MB / 14.72 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 1.461/1.461, allocations: 225.6 MB / 249.1 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] 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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 51.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1017, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002742/0.1044, allocations: 1.437 MB / 419.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002945/0.1047, allocations: 111.6 kB / 419.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.124e-05/0.1048, allocations: 0 / 419.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.606e-05/0.1048, allocations: 7.875 kB / 419.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.297e-05/0.1048, allocations: 7.938 kB / 419.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.1051, allocations: 15.98 kB / 419.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.687e-05/0.1052, allocations: 31.91 kB / 419.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.975e-05/0.1053, allocations: 4 kB / 419.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.909e-05/0.1053, allocations: 15.92 kB / 419.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.181e-05/0.1053, allocations: 11.94 kB / 419.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.1054, allocations: 0 / 419.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.102e-05/0.1054, allocations: 4 kB / 419.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.715e-05/0.1054, allocations: 4 kB / 419.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.318e-05/0.1054, allocations: 15.92 kB / 419.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.207e-05/0.1055, allocations: 39.77 kB / 419.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1055, allocations: 0 / 419.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1055, allocations: 3.938 kB / 419.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.1055, allocations: 0 / 419.5 MB, free: 10.93 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.0004672/0.106, allocations: 339.4 kB / 419.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.106, allocations: 12.03 kB / 419.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.049e-05/0.1061, allocations: 38.73 kB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.274e-05/0.1061, allocations: 4.938 kB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.1063, allocations: 176.3 kB / 420 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-06/0.1063, allocations: 384 / 420 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.1064, allocations: 8.375 kB / 420 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.1067, allocations: 95.88 kB / 420.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1067, allocations: 11.94 kB / 420.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.1067, allocations: 0 / 420.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1067, allocations: 0 / 420.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.691e-05/0.1068, allocations: 19.92 kB / 420.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002025/0.107, allocations: 157.7 kB / 420.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/0.1072, allocations: 58.48 kB / 420.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.445e-05/0.1072, allocations: 20.89 kB / 420.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.1073, allocations: 0 / 420.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.1073, allocations: 38.59 kB / 420.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.81e-07/0.1073, allocations: 0 / 420.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002289/0.1075, allocations: 81.48 kB / 420.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.1076, allocations: 51.41 kB / 420.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.413e-05/0.1077, allocations: 117.8 kB / 420.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.1077, allocations: 25.7 kB / 420.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.207e-05/0.1077, allocations: 84.14 kB / 420.8 MB, free: 9.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.793e-06/0.1077, allocations: 0 / 420.8 MB, free: 9.395 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.307e-05/0.1078, allocations: 17.72 kB / 420.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1079, allocations: 318.8 kB / 421.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.384e-05/0.1079, allocations: 4 kB / 421.1 MB, free: 9.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.112e-05/0.108, allocations: 31.38 kB / 421.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.612e-05/0.108, allocations: 35.38 kB / 421.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.108, allocations: 0 / 421.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.008e-05/0.1081, allocations: 57.66 kB / 421.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1081, allocations: 15.97 kB / 421.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1081, allocations: 0 / 421.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.1081, allocations: 0 / 421.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.356e-05/0.1082, allocations: 11.98 kB / 421.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1082, allocations: 0 / 421.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.102e-05/0.1082, allocations: 4.25 kB / 421.3 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.1082, allocations: 8 kB / 421.3 MB, free: 8.855 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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 7.754e-05/0.1083, allocations: 109.8 kB / 421.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.1084, allocations: 69.52 kB / 421.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.514e-05/0.1084, allocations: 7.891 kB / 421.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.1084, allocations: 4 kB / 421.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1084, allocations: 0 / 421.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.654e-06/0.1084, allocations: 0 / 421.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.1086, allocations: 157.6 kB / 421.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1086, allocations: 0 / 421.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.266e-05/0.1086, allocations: 11.98 kB / 421.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.1086, allocations: 3.938 kB / 421.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.1086, allocations: 0 / 421.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1086, allocations: 0 / 421.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1086, allocations: 4 kB / 421.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001449/0.1088, allocations: 81.11 kB / 421.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.641e-05/0.1088, allocations: 85.06 kB / 421.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.1088, allocations: 11.88 kB / 421.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.331e-05/0.1088, allocations: 0 / 421.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.263e-06/0.1089, allocations: 3.938 kB / 421.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.1089, allocations: 4 kB / 421.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.205e-05/0.1089, allocations: 87.27 kB / 421.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1089, allocations: 0 / 421.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001836/0.1091, allocations: 8 kB / 421.9 MB, free: 8.109 MB / 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: 3 (step.y,assignClock1.u,assignClock1.y) * 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.0004522/0.1095, allocations: 0.6163 MB / 422.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.1097, allocations: 32.34 kB / 422.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1097, allocations: 0 / 422.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.61e-07/0.1097, allocations: 3.938 kB / 422.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.1099, allocations: 24 kB / 422.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.111, allocations: 1.158 MB / 423.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.1113, allocations: 0.6805 MB / 424.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.865e-05/0.1113, allocations: 7.984 kB / 424.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.1113, allocations: 11.44 kB / 424.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1113, allocations: 0 / 424.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.1352, allocations: 1.246 MB / 425.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.98/8.115, allocations: 8.766 kB / 425.7 MB, free: 4.305 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock1.period,step.startTime,assignClock1.u,assignClock1.y,step.y [Calling sys.exit(0), Time elapsed: 10.772515543736517]