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.001009/0.001009, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006689/0.006689, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.722/1.722, allocations: 205.4 MB / 222.5 MB, free: 5.551 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.665/1.665, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005753/0.0005753, allocations: 17.47 kB / 0.6744 GB, free: 25.89 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2469, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00205/0.249, allocations: 1.534 MB / 0.7895 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009531/0.25, allocations: 0.5581 MB / 0.79 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.2501, allocations: 4 kB / 0.79 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.2503, allocations: 19.8 kB / 0.7901 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.479e-05/0.2503, allocations: 19.8 kB / 0.7901 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.2505, allocations: 59.94 kB / 0.7901 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000226/0.2508, allocations: 171.4 kB / 0.7903 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.2509, allocations: 41.66 kB / 0.7903 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.474e-05/0.251, allocations: 39.78 kB / 0.7904 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.818e-05/0.2511, allocations: 51.64 kB / 0.7904 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.2511, allocations: 4 kB / 0.7904 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.663e-05/0.2512, allocations: 8 kB / 0.7904 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.274e-05/0.2512, allocations: 23.86 kB / 0.7905 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.752e-05/0.2513, allocations: 81.31 kB / 0.7905 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.2514, allocations: 123.7 kB / 0.7907 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2514, allocations: 0 / 0.7907 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2515, allocations: 0 / 0.7907 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.2515, allocations: 0 / 0.7907 GB, free: 8.723 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.0006519/0.2521, allocations: 458.8 kB / 0.7911 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.2522, allocations: 12.03 kB / 0.7911 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.858e-05/0.2522, allocations: 42.73 kB / 0.7911 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.922e-05/0.2523, allocations: 20.75 kB / 0.7912 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.2525, allocations: 227.9 kB / 0.7914 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.2525, allocations: 8.375 kB / 0.7914 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/0.2525, allocations: 12.38 kB / 0.7914 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.2528, allocations: 157.9 kB / 0.7916 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.2528, allocations: 0 / 0.7916 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.2529, allocations: 8 kB / 0.7916 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.2529, allocations: 4 kB / 0.7916 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.2531, allocations: 83.88 kB / 0.7916 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008066/0.2539, allocations: 0.7431 MB / 0.7924 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.2541, allocations: 54.56 kB / 0.7924 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.2542, allocations: 40.77 kB / 0.7925 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.2542, allocations: 0 / 0.7925 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002588/0.2545, allocations: 134.7 kB / 0.7926 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 2.766e-06/0.2545, allocations: 0 / 0.7926 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004895/0.255, allocations: 185.4 kB / 0.7928 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.2551, allocations: 132.5 kB / 0.7929 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.2553, allocations: 211.3 kB / 0.7931 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.2553, allocations: 25.7 kB / 0.7931 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.596e-05/0.2554, allocations: 128.1 kB / 0.7932 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.991e-05/0.2554, allocations: 31.61 kB / 0.7933 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.2554, allocations: 33.7 kB / 0.7933 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.799e-05/0.2555, allocations: 326.8 kB / 0.7936 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.2557, allocations: 43.97 kB / 0.7937 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.2559, allocations: 154.4 kB / 0.7938 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.2562, allocations: 214.3 kB / 0.794 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2562, allocations: 0 / 0.794 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003816/0.2566, allocations: 221.2 kB / 0.7942 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.2566, allocations: 4 kB / 0.7942 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.2566, allocations: 4.047 kB / 0.7942 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.2566, allocations: 12.48 kB / 0.7942 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.2567, allocations: 35.92 kB / 0.7943 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.2568, allocations: 11.94 kB / 0.7943 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.2569, allocations: 31.83 kB / 0.7943 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.2569, allocations: 11.98 kB / 0.7943 GB, free: 4.559 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 9.856e-05/0.257, allocations: 140.1 kB / 0.7945 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.819e-05/0.2571, allocations: 19.81 kB / 0.7945 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.01e-05/0.2571, allocations: 25.39 kB / 0.7945 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2571, allocations: 0 / 0.7945 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2571, allocations: 4 kB / 0.7945 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2571, allocations: 0 / 0.7945 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006977/0.2578, allocations: 0.5291 MB / 0.795 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2579, allocations: 4.062 kB / 0.795 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.258, allocations: 19.98 kB / 0.7951 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.258, allocations: 0 / 0.7951 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.258, allocations: 11.94 kB / 0.7951 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.258, allocations: 3.938 kB / 0.7951 GB, free: 3.738 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.258, allocations: 7.938 kB / 0.7951 GB, free: 3.73 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004755/0.2585, allocations: 372.2 kB / 0.7954 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.911e-05/0.2586, allocations: 88.92 kB / 0.7955 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.2586, allocations: 12.03 kB / 0.7955 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.2588, allocations: 19.92 kB / 0.7955 GB, free: 3.207 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.173e-05/0.2588, allocations: 15.92 kB / 0.7956 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.567e-06/0.2588, allocations: 8 kB / 0.7956 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001002/0.2589, allocations: 140.6 kB / 0.7957 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.259, allocations: 0 / 0.7957 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003173/0.2593, allocations: 31.94 kB / 0.7957 GB, free: 3.016 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.000727/0.26, allocations: 0.9122 MB / 0.7966 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003081/0.2603, allocations: 128.5 kB / 0.7967 GB, free: 1.945 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2603, allocations: 0 / 0.7967 GB, free: 1.945 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.2605, allocations: 55.91 kB / 0.7968 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005663/0.2611, allocations: 51.95 kB / 0.7968 GB, free: 1.84 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.2634, allocations: 2.341 MB / 0.7991 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.2637, allocations: 0.7206 MB / 0.7998 GB, free: 14.56 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.851e-05/0.2638, allocations: 29.66 kB / 0.7999 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.601e-05/0.2639, allocations: 47.42 kB / 0.7999 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of SimCode: time 3.71e-07/0.2639, allocations: 0 / 0.7999 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01291/0.2768, allocations: 3.59 MB / 0.8034 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/0.277, allocations: 198.6 kB / 0.8036 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.708/1.985, allocations: 4 kB / 0.8036 GB, free: 10.79 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)