Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.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.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_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.001164/0.001164, 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.001399/0.001399, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.434/1.434, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.725/1.725, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001595/0.001595, allocations: 76.08 kB / 0.6716 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2419, allocations: 114.5 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.00306/0.245, allocations: 0.8892 MB / 0.7844 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001835/0.2469, allocations: 1.173 MB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.488e-05/0.247, allocations: 4 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.009e-05/0.2471, allocations: 11.86 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.27e-05/0.2472, allocations: 11.81 kB / 0.7855 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000605/0.2478, allocations: 142.4 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.248, allocations: 183.6 kB / 0.7858 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.2482, allocations: 29.11 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.2483, allocations: 67.83 kB / 0.7859 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.746e-05/0.2484, allocations: 63.73 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.319e-05/0.2484, allocations: 20 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.655e-05/0.2485, allocations: 27.98 kB / 0.786 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.2486, allocations: 23.91 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.76e-05/0.2487, allocations: 67.72 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.2489, allocations: 167.7 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2489, allocations: 0 / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2489, allocations: 0 / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.206e-06/0.2489, allocations: 0 / 0.7863 GB, free: 10.46 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006918/0.2496, allocations: 472.5 kB / 0.7867 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2497, allocations: 12.03 kB / 0.7868 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.999e-05/0.2497, allocations: 34.75 kB / 0.7868 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.283e-05/0.2498, allocations: 12.84 kB / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005525/0.2504, allocations: 250.9 kB / 0.787 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.2504, allocations: 4.375 kB / 0.787 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.2504, allocations: 16.38 kB / 0.7871 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000237/0.2507, allocations: 101.1 kB / 0.7872 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.2507, allocations: 0 / 0.7872 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.2507, allocations: 0 / 0.7872 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.2507, allocations: 4 kB / 0.7872 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.2509, allocations: 43.95 kB / 0.7872 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007799/0.2517, allocations: 404.3 kB / 0.7876 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.2519, allocations: 34.56 kB / 0.7876 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.252, allocations: 28.95 kB / 0.7876 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.252, allocations: 0 / 0.7876 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003067/0.2523, allocations: 95.3 kB / 0.7877 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.2523, allocations: 0 / 0.7877 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004786/0.2528, allocations: 137.4 kB / 0.7879 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.2529, allocations: 63.33 kB / 0.7879 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.253, allocations: 137.8 kB / 0.7881 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.955e-05/0.2531, allocations: 33.7 kB / 0.7881 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.2532, allocations: 116 kB / 0.7882 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.2532, allocations: 27.69 kB / 0.7882 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.137e-05/0.2533, allocations: 45.7 kB / 0.7883 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.2535, allocations: 322.8 kB / 0.7886 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.2536, allocations: 51.95 kB / 0.7886 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/0.2538, allocations: 127.1 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/0.2542, allocations: 209 kB / 0.789 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.2542, allocations: 3.938 kB / 0.789 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005107/0.2547, allocations: 247 kB / 0.7892 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.2548, allocations: 37.7 kB / 0.7892 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.2548, allocations: 7.938 kB / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.2548, allocations: 4 kB / 0.7892 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.255, allocations: 27.92 kB / 0.7893 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.255, allocations: 11.92 kB / 0.7893 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.2552, allocations: 36.09 kB / 0.7893 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.2553, allocations: 12 kB / 0.7893 GB, free: 7.023 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001198/0.2554, allocations: 134.4 kB / 0.7894 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.2554, allocations: 11.81 kB / 0.7895 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.258e-05/0.2555, allocations: 12.72 kB / 0.7895 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.2555, allocations: 3.938 kB / 0.7895 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2555, allocations: 3.938 kB / 0.7895 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.2555, allocations: 3.984 kB / 0.7895 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005991/0.2561, allocations: 390.5 kB / 0.7899 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2561, allocations: 0 / 0.7899 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.2562, allocations: 19.92 kB / 0.7899 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.2562, allocations: 0 / 0.7899 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.2562, allocations: 0 / 0.7899 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2563, allocations: 0 / 0.7899 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2563, allocations: 4 kB / 0.7899 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.2567, allocations: 243.2 kB / 0.7901 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.138e-05/0.2568, allocations: 88.95 kB / 0.7902 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.2568, allocations: 0 / 0.7902 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.199e-05/0.2569, allocations: 12.03 kB / 0.7902 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.257, allocations: 11.98 kB / 0.7902 GB, free: 6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.257, allocations: 8 kB / 0.7902 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.926e-05/0.2571, allocations: 110 kB / 0.7903 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2571, allocations: 0 / 0.7903 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003153/0.2574, allocations: 28 kB / 0.7904 GB, free: 5.859 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0008054/0.2582, allocations: 0.7981 MB / 0.7911 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004255/0.2586, allocations: 183.2 kB / 0.7913 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.2586, allocations: 3.984 kB / 0.7913 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.2588, allocations: 36.67 kB / 0.7914 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.2591, allocations: 30.36 kB / 0.7914 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.2617, allocations: 1.948 MB / 0.7933 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.262, allocations: 0.7084 MB / 0.794 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.789e-05/0.2621, allocations: 12.64 kB / 0.794 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.451e-05/0.2622, allocations: 35.42 kB / 0.794 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of SimCode: time 7.01e-07/0.2622, allocations: 0 / 0.794 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.2831, allocations: 3.144 MB / 0.7971 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.69/7.973, allocations: 16.41 kB / 0.7971 GB, free: 14.88 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1)