Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Change.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.Integers.Validation.Change,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_Change",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.001131/0.001131, allocations: 109.4 kB / 15.69 MB, free: 128 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.001153/0.001153, allocations: 185.8 kB / 16.62 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.506/1.506, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.681/1.681, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001495/0.001495, allocations: 71.06 kB / 0.6718 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2756, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.00361/0.2793, allocations: 1.916 MB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001694/0.281, allocations: 1.042 MB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.2811, allocations: 7.938 kB / 0.7865 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004307/0.2816, allocations: 87.62 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003059/0.2819, allocations: 95.53 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000334/0.2822, allocations: 134.9 kB / 0.7868 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002822/0.2825, allocations: 219.4 kB / 0.7871 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.2827, allocations: 49.92 kB / 0.7871 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.2829, allocations: 99.61 kB / 0.7872 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.283, allocations: 107.5 kB / 0.7873 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.283, allocations: 12 kB / 0.7873 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.2832, allocations: 51.97 kB / 0.7874 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.571e-05/0.2833, allocations: 63.81 kB / 0.7874 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.2834, allocations: 91.41 kB / 0.7875 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000325/0.2837, allocations: 271 kB / 0.7878 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2837, allocations: 4 kB / 0.7878 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2837, allocations: 0 / 0.7878 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.2838, allocations: 0 / 0.7878 GB, free: 9.004 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008971/0.2847, allocations: 0.5413 MB / 0.7883 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.2847, allocations: 8.031 kB / 0.7883 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.639e-05/0.2848, allocations: 46.73 kB / 0.7883 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.158e-05/0.2848, allocations: 24.66 kB / 0.7884 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.2852, allocations: 287.8 kB / 0.7886 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.2852, allocations: 8 kB / 0.7887 GB, free: 8 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.2853, allocations: 8 kB / 0.7887 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.2856, allocations: 124 kB / 0.7888 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.2856, allocations: 0 / 0.7888 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.2856, allocations: 7.938 kB / 0.7888 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.2856, allocations: 3.938 kB / 0.7888 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.2859, allocations: 87.92 kB / 0.7889 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007294/0.2867, allocations: 460.5 kB / 0.7893 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/0.287, allocations: 130.6 kB / 0.7894 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.2872, allocations: 60.81 kB / 0.7895 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.2872, allocations: 0 / 0.7895 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.2875, allocations: 127.3 kB / 0.7896 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=16): time 1.312e-06/0.2875, allocations: 0 / 0.7896 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16): time 0.0006386/0.2881, allocations: 249.2 kB / 0.7899 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.074e-05/0.2882, allocations: 55.39 kB / 0.7899 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.2885, allocations: 334.5 kB / 0.7902 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.2886, allocations: 29.7 kB / 0.7903 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.477e-05/0.2887, allocations: 144.5 kB / 0.7904 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.377e-05/0.2887, allocations: 39.45 kB / 0.7904 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.595e-05/0.2888, allocations: 57.69 kB / 0.7905 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.289, allocations: 338.8 kB / 0.7908 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.2892, allocations: 83.95 kB / 0.7909 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.2894, allocations: 141.9 kB / 0.791 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003861/0.2898, allocations: 196.9 kB / 0.7912 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2898, allocations: 0 / 0.7912 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005438/0.2904, allocations: 289.2 kB / 0.7915 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.919e-05/0.2904, allocations: 12.88 kB / 0.7915 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.2904, allocations: 0 / 0.7915 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.2905, allocations: 4 kB / 0.7915 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/0.2907, allocations: 39.97 kB / 0.7915 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.2907, allocations: 7.922 kB / 0.7916 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.2908, allocations: 27.89 kB / 0.7916 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.13e-05/0.2909, allocations: 12 kB / 0.7916 GB, free: 4.812 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.cha.y,decreaseSampler.y,$PRE.decreaseSampler.y,increaseSampler.y,$PRE.increaseSampler.y,changeSampler.y,$PRE.changeSampler.y,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition2,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,cha.down,cha.up,cha.y,cha.u,$PRE.cha.u,$whenCondition1,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001717/0.2911, allocations: 171 kB / 0.7918 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.593e-05/0.2911, allocations: 27.66 kB / 0.7918 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.2912, allocations: 22.19 kB / 0.7918 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2912, allocations: 0 / 0.7918 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2912, allocations: 0 / 0.7918 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.2912, allocations: 3.984 kB / 0.7918 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007879/0.292, allocations: 0.5522 MB / 0.7923 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.292, allocations: 4 kB / 0.7923 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.319e-05/0.2921, allocations: 11.98 kB / 0.7924 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.2921, allocations: 0 / 0.7924 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.2921, allocations: 8 kB / 0.7924 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2921, allocations: 0 / 0.7924 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2921, allocations: 0 / 0.7924 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004466/0.2926, allocations: 303 kB / 0.7927 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.999e-05/0.2927, allocations: 104.8 kB / 0.7928 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.2927, allocations: 0 / 0.7928 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.2928, allocations: 19.97 kB / 0.7928 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.397e-05/0.2929, allocations: 19.92 kB / 0.7928 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.2929, allocations: 4 kB / 0.7928 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000195/0.2931, allocations: 213.9 kB / 0.793 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2931, allocations: 0 / 0.793 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003054/0.2934, allocations: 44 kB / 0.793 GB, free: 3.227 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 (cha.y,cha.up,cha.down,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cha.u,changeSampler.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,increaseSampler.y,decreaseSampler.y) * Number of discrete states: 3 (timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,cha.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001657/0.2951, allocations: 1.143 MB / 0.7942 GB, free: 2.223 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004886/0.2956, allocations: 191.7 kB / 0.7943 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2956, allocations: 0 / 0.7943 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.2958, allocations: 75.89 kB / 0.7944 GB, free: 1.961 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004515/0.2963, allocations: 46.39 kB / 0.7945 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.3, allocations: 2.612 MB / 0.797 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.3004, allocations: 0.748 MB / 0.7977 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001186/0.3006, allocations: 29.94 kB / 0.7978 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.3007, allocations: 75.41 kB / 0.7978 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of SimCode: time 7.41e-07/0.3007, allocations: 0 / 0.7978 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.3272, allocations: 5.369 MB / 0.8031 GB, free: 9.062 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.204/8.531, allocations: 7.625 kB / 0.8031 GB, free: 9.059 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1)