Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) 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(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements,fileNamePrefix="IDEAS_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomFourElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements,fileNamePrefix="IDEAS_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomFourElements",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.005516/0.005516, allocations: 101.2 kB / 15.73 MB, free: 5.996 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.001352/0.001352, allocations: 187.4 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8254/0.8254, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 62.48 kB / 0.5808 GB, free: 1.125 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1739/0.1759, allocations: 80.2 MB / 0.6592 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements): time 0.5855/0.7614, allocations: 163.1 MB / 0.8184 GB, free: 2.73 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03383/0.7953, allocations: 27.45 MB / 0.8452 GB, free: 2.527 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0044/0.7998, allocations: 84.88 kB / 0.8453 GB, free: 2.527 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002812/0.8027, allocations: 1.137 MB / 0.8464 GB, free: 2.512 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.006313/0.809, allocations: 1.885 MB / 0.8483 GB, free: 2.457 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005479/0.8145, allocations: 1.985 MB / 0.8502 GB, free: 2.418 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007592/0.8221, allocations: 5.849 MB / 0.8559 GB, free: 2.41 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007494/0.8296, allocations: 4.879 MB / 0.8607 GB, free: 1.867 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004924/0.8346, allocations: 2.312 MB / 0.8629 GB, free: 1.754 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00443/0.8391, allocations: 2.824 MB / 0.8657 GB, free: 1.309 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.001827/0.8409, allocations: 0.5218 MB / 0.8662 GB, free: 1.309 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003722/0.8446, allocations: 1.137 MB / 0.8673 GB, free: 1.289 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001956/0.8466, allocations: 1.356 MB / 0.8686 GB, free: 1.117 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.004527/0.8511, allocations: 2.394 MB / 0.871 GB, free: 264 kB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.009744/0.8609, allocations: 6.788 MB / 0.8776 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.861, allocations: 3.938 kB / 0.8776 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.673e-06/0.861, allocations: 2.625 kB / 0.8776 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.00023/0.8612, allocations: 0 / 0.8776 GB, free: 13.82 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01352/0.8748, allocations: 5.241 MB / 0.8827 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.8748, allocations: 12.34 kB / 0.8827 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009369/0.8758, allocations: 0.5099 MB / 0.8832 GB, free: 10.66 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01432/0.8901, allocations: 2.856 MB / 0.886 GB, free: 9.34 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005839/0.896, allocations: 2.562 MB / 0.8885 GB, free: 7.68 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002419/0.8963, allocations: 282.2 kB / 0.8888 GB, free: 7.551 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001242/0.8975, allocations: 369.8 kB / 0.8892 GB, free: 7.43 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01435/0.9119, allocations: 5.728 MB / 0.8947 GB, free: 4.176 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.713e-05/0.912, allocations: 9.984 kB / 0.8948 GB, free: 4.172 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004661/0.9125, allocations: 152.7 kB / 0.8949 GB, free: 4.055 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.94e-05/0.9125, allocations: 93.84 kB / 0.895 GB, free: 4.051 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01815/0.9307, allocations: 6.854 MB / 0.9017 GB, free: 14.84 MB / 0.67 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03929/0.97, allocations: 17.3 MB / 0.9186 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01181/0.9819, allocations: 4.487 MB / 0.923 GB, free: 8.66 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007234/0.9892, allocations: 2.946 MB / 0.9258 GB, free: 5.711 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001313/0.9905, allocations: 0.6784 MB / 0.9265 GB, free: 4.918 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00789/0.9984, allocations: 2.72 MB / 0.9292 GB, free: 2.164 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=315): time 8.816e-06/0.9985, allocations: 0 / 0.9292 GB, free: 2.164 MB / 0.6856 GB Notification: Performance of matching and sorting (n=315): time 0.03116/1.03, allocations: 9.712 MB / 0.9386 GB, free: 8.355 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001647/1.03, allocations: 214.3 kB / 0.9388 GB, free: 8.102 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005326/1.035, allocations: 2.662 MB / 0.9414 GB, free: 5.426 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0008302/1.036, allocations: 85.7 kB / 0.9415 GB, free: 5.336 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.002003/1.038, allocations: 1.567 MB / 0.9431 GB, free: 3.758 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.001875/1.04, allocations: 1.104 MB / 0.9441 GB, free: 2.668 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002246/1.042, allocations: 0.5251 MB / 0.9446 GB, free: 2.137 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001418/1.042, allocations: 301.1 kB / 0.9449 GB, free: 1.84 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006013/1.048, allocations: 2.16 MB / 0.947 GB, free: 15.68 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006404/1.055, allocations: 2.52 MB / 0.9495 GB, free: 13.07 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/1.068, allocations: 4.686 MB / 0.9541 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-05/1.068, allocations: 0 / 0.9541 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=347) (initialization): time 0.01724/1.085, allocations: 5.768 MB / 0.9597 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/1.085, allocations: 8.031 kB / 0.9597 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/1.085, allocations: 4 kB / 0.9597 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002082/1.087, allocations: 0.8342 MB / 0.9605 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004603/1.092, allocations: 0.7961 MB / 0.9613 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01281/1.105, allocations: 7.57 MB / 0.9687 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004861/1.109, allocations: 0.5737 MB / 0.9693 GB, free: 8.688 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008727/1.11, allocations: 119.9 kB / 0.9694 GB, free: 8.57 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.intGai.nextTimeEvent,$whenCondition1,intGai.nextTimeEventScaled,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEvent,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 282 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,60,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003494/1.114, allocations: 1.025 MB / 0.9704 GB, free: 7.562 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001526/1.115, allocations: 321.9 kB / 0.9707 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01761/1.133, allocations: 6.39 MB / 0.9769 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.485e-05/1.133, allocations: 34.62 kB / 0.977 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.658e-05/1.133, allocations: 11.98 kB / 0.977 GB, free: 0.7812 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.757e-05/1.133, allocations: 11.95 kB / 0.977 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02629/1.159, allocations: 10.74 MB / 0.9875 GB, free: 6.016 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/1.159, allocations: 0 / 0.9875 GB, free: 6.016 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004325/1.164, allocations: 0.7638 MB / 0.9882 GB, free: 5.273 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/1.166, allocations: 0.7365 MB / 0.9889 GB, free: 4.527 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005787/1.167, allocations: 87.92 kB / 0.989 GB, free: 4.441 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01389/1.18, allocations: 10.67 MB / 0.9994 GB, free: 9.371 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.18, allocations: 0 / 0.9994 GB, free: 9.371 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02372/1.204, allocations: 9.096 MB / 1.008 GB, free: 236 kB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002545/1.207, allocations: 0.916 MB / 1.009 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/1.208, allocations: 67.89 kB / 1.009 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003743/1.212, allocations: 407.4 kB / 1.01 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006239/1.212, allocations: 210.1 kB / 1.01 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003096/1.213, allocations: 107.9 kB / 1.01 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.003014/1.216, allocations: 1.932 MB / 1.012 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.1e-07/1.216, allocations: 0 / 1.012 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003698/1.219, allocations: 1.224 MB / 1.013 GB, free: 11.35 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thermalZoneFourElements.volAir.dynBal.U,thermalZoneFourElements.volAir.dynBal.m,thermalZoneFourElements.extWallRC.thermCapExt[1].T,thermalZoneFourElements.intWallRC.thermCapInt[1].T,thermalZoneFourElements.floorRC.thermCapExt[1].T,thermalZoneFourElements.roofRC.thermCapExt[1].T) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,intGai.nextTimeEvent,intGai.nextTimeEventScaled) * Number of discrete states: 4 (intGai.nextTimeEvent,intGai.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,49,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02374/1.243, allocations: 10.6 MB / 1.023 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.01302/1.256, allocations: 5.486 MB / 1.029 GB, free: 11.67 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.256, allocations: 0 / 1.029 GB, free: 11.67 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.007143/1.263, allocations: 3.328 MB / 1.032 GB, free: 8.352 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003769/1.267, allocations: 0.7779 MB / 1.033 GB, free: 7.637 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06858/1.336, allocations: 33.31 MB / 1.065 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003139/1.339, allocations: 2.699 MB / 1.068 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.003843/1.343, allocations: 1.166 MB / 1.069 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002683/1.345, allocations: 1.642 MB / 1.071 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of SimCode: time 7.61e-07/1.345, allocations: 0 / 1.071 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5197/1.865, allocations: 81.9 MB / 1.151 GB, free: 380.8 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.51/21.38, allocations: 7.25 kB / 1.151 GB, free: 380.8 MB / 0.8887 GB (rm -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; mkfifo IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; head -c 1048576 < IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe >> ../files/IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3600 IDEAS_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomFourElements.fmu > IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe 2>&1)