Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 196.5 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.701/1.701, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 72.28 kB / 0.6716 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2977, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003529/0.3013, allocations: 1.815 MB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3024, allocations: 0.5863 MB / 0.7858 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.3025, allocations: 3.938 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.3027, allocations: 27.73 kB / 0.7858 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.063e-05/0.3028, allocations: 23.73 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.303, allocations: 67.86 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002455/0.3033, allocations: 175.4 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.3034, allocations: 45.66 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.829e-05/0.3035, allocations: 59.77 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.569e-05/0.3036, allocations: 51.7 kB / 0.7862 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.3037, allocations: 12 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.396e-05/0.3037, allocations: 8 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.03e-05/0.3037, allocations: 31.86 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.6e-05/0.3038, allocations: 63.55 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.304, allocations: 135.7 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.304, allocations: 0 / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.393e-06/0.304, allocations: 0 / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.3041, allocations: 0 / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009137/0.305, allocations: 478.7 kB / 0.7869 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.305, allocations: 8.031 kB / 0.7869 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.11e-05/0.3051, allocations: 46.73 kB / 0.787 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.61e-05/0.3052, allocations: 16.75 kB / 0.787 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003479/0.3055, allocations: 227.9 kB / 0.7872 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.3056, allocations: 12.38 kB / 0.7872 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/0.3056, allocations: 12.38 kB / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003258/0.3059, allocations: 146 kB / 0.7874 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.3059, allocations: 0 / 0.7874 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.306, allocations: 4 kB / 0.7874 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.306, allocations: 7.938 kB / 0.7874 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002376/0.3062, allocations: 75.88 kB / 0.7875 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000987/0.3072, allocations: 0.7469 MB / 0.7882 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.3074, allocations: 50.55 kB / 0.7883 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.3075, allocations: 28.84 kB / 0.7883 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.3075, allocations: 0 / 0.7883 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003161/0.3079, allocations: 138.6 kB / 0.7884 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.3079, allocations: 0 / 0.7884 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0005178/0.3084, allocations: 161.3 kB / 0.7886 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.3085, allocations: 136.8 kB / 0.7887 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.3087, allocations: 211.3 kB / 0.7889 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.3088, allocations: 29.7 kB / 0.7889 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.221e-05/0.3089, allocations: 124.1 kB / 0.789 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.476e-05/0.3089, allocations: 35.45 kB / 0.7891 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.251e-05/0.309, allocations: 41.7 kB / 0.7891 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.3091, allocations: 334.8 kB / 0.7894 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.3093, allocations: 43.97 kB / 0.7895 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.3095, allocations: 148.9 kB / 0.7896 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.3099, allocations: 198.4 kB / 0.7898 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3099, allocations: 0 / 0.7898 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004057/0.3103, allocations: 209.2 kB / 0.79 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3103, allocations: 8.938 kB / 0.79 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.3103, allocations: 4 kB / 0.79 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3103, allocations: 4 kB / 0.79 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.3105, allocations: 31.92 kB / 0.7901 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.3105, allocations: 7.984 kB / 0.7901 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.3107, allocations: 32.17 kB / 0.7901 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.3107, allocations: 12 kB / 0.7901 GB, free: 6.156 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001112/0.3108, allocations: 133.7 kB / 0.7902 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.3108, allocations: 19.81 kB / 0.7903 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.761e-05/0.3109, allocations: 25.39 kB / 0.7903 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.3109, allocations: 0 / 0.7903 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3109, allocations: 0 / 0.7903 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-06/0.3109, allocations: 4 kB / 0.7903 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007414/0.3117, allocations: 0.517 MB / 0.7908 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3117, allocations: 0 / 0.7908 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.3118, allocations: 15.98 kB / 0.7908 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.3118, allocations: 4 kB / 0.7908 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.3118, allocations: 320 / 0.7908 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.3118, allocations: 11.88 kB / 0.7908 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3119, allocations: 8 kB / 0.7908 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005125/0.3124, allocations: 356.5 kB / 0.7912 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.382e-05/0.3125, allocations: 101 kB / 0.7913 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.3125, allocations: 96 / 0.7913 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.3127, allocations: 19.92 kB / 0.7913 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.445e-05/0.3127, allocations: 11.97 kB / 0.7913 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.3127, allocations: 4 kB / 0.7913 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001251/0.3129, allocations: 148.5 kB / 0.7914 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3129, allocations: 0 / 0.7914 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003276/0.3132, allocations: 27.94 kB / 0.7915 GB, free: 4.656 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008475/0.3141, allocations: 0.9095 MB / 0.7923 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003378/0.3144, allocations: 111.8 kB / 0.7925 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3144, allocations: 0 / 0.7925 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.3146, allocations: 52.91 kB / 0.7925 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005527/0.3151, allocations: 73.56 kB / 0.7926 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.3177, allocations: 2.268 MB / 0.7948 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.3181, allocations: 0.7281 MB / 0.7955 GB, free: 284 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.164e-05/0.3182, allocations: 17.67 kB / 0.7955 GB, free: 268 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.148e-05/0.3183, allocations: 47.42 kB / 0.7956 GB, free: 224 kB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.3183, allocations: 0 / 0.7956 GB, free: 224 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02351/0.3418, allocations: 3.977 MB / 0.7994 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.198/7.54, allocations: 11.98 kB / 0.7995 GB, free: 12.32 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)