Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomFourElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements,fileNamePrefix="IDEAS_dev_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.005231/0.005231, allocations: 98.97 kB / 15.73 MB, free: 6.012 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.001453/0.001453, allocations: 201.7 kB / 16.68 MB, free: 5.926 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8589/0.8589, allocations: 135.6 MB / 426.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 67.02 kB / 0.5857 GB, free: 21.41 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1744, allocations: 81.02 MB / 0.6648 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements): time 0.5681/0.7425, allocations: 163.1 MB / 0.8241 GB, free: 2.922 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03956/0.7821, allocations: 27.45 MB / 0.8509 GB, free: 12.42 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00349/0.7856, allocations: 83.94 kB / 0.851 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003154/0.7888, allocations: 1.135 MB / 0.8521 GB, free: 11.56 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.005999/0.7949, allocations: 1.883 MB / 0.8539 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005398/0.8003, allocations: 1.984 MB / 0.8559 GB, free: 8.543 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.008605/0.8089, allocations: 5.863 MB / 0.8616 GB, free: 4.906 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007839/0.8168, allocations: 4.876 MB / 0.8664 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005487/0.8223, allocations: 2.307 MB / 0.8686 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005863/0.8282, allocations: 2.826 MB / 0.8714 GB, free: 10.81 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.001807/0.83, allocations: 0.5195 MB / 0.8719 GB, free: 10.29 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003648/0.8337, allocations: 1.128 MB / 0.873 GB, free: 9.16 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001852/0.8356, allocations: 1.371 MB / 0.8743 GB, free: 7.785 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.00534/0.8409, allocations: 2.399 MB / 0.8767 GB, free: 5.375 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.852, allocations: 6.782 MB / 0.8833 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.8521, allocations: 0 / 0.8833 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of FrontEnd: time 8.61e-07/0.8521, allocations: 0 / 0.8833 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0002058/0.8523, allocations: 0 / 0.8833 GB, free: 14.57 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.01234/0.8646, allocations: 5.243 MB / 0.8884 GB, free: 9.246 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 6.52e-05/0.8647, allocations: 13.11 kB / 0.8884 GB, free: 9.234 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008184/0.8655, allocations: 0.5104 MB / 0.8889 GB, free: 8.715 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01765/0.8832, allocations: 2.86 MB / 0.8917 GB, free: 5.848 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008417/0.8917, allocations: 2.566 MB / 0.8942 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003929/0.8921, allocations: 279.5 kB / 0.8945 GB, free: 2.938 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001652/0.8938, allocations: 368 kB / 0.8948 GB, free: 2.578 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02483/0.9186, allocations: 5.732 MB / 0.9004 GB, free: 12.79 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002301/0.9189, allocations: 3.953 kB / 0.9004 GB, free: 12.78 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001543/0.9205, allocations: 156 kB / 0.9006 GB, free: 12.63 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001282/0.9206, allocations: 95.94 kB / 0.9007 GB, free: 12.54 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02699/0.9476, allocations: 6.858 MB / 0.9074 GB, free: 5.668 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.04387/0.9915, allocations: 17.28 MB / 0.9243 GB, free: 3.629 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01169/1.003, allocations: 4.488 MB / 0.9286 GB, free: 15.14 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00677/1.01, allocations: 2.951 MB / 0.9315 GB, free: 12.19 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001146/1.011, allocations: 0.6777 MB / 0.9322 GB, free: 11.38 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006812/1.018, allocations: 2.721 MB / 0.9348 GB, free: 8.621 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=315): time 6.111e-06/1.018, allocations: 0 / 0.9348 GB, free: 8.621 MB / 0.7012 GB Notification: Performance of matching and sorting (n=315): time 0.02803/1.046, allocations: 9.708 MB / 0.9443 GB, free: 14.78 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002389/1.046, allocations: 222.3 kB / 0.9445 GB, free: 14.52 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004538/1.051, allocations: 2.654 MB / 0.9471 GB, free: 11.85 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0008635/1.052, allocations: 77.7 kB / 0.9472 GB, free: 11.77 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.002328/1.054, allocations: 1.58 MB / 0.9487 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.002283/1.057, allocations: 1.096 MB / 0.9498 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002244/1.059, allocations: 0.5251 MB / 0.9503 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000157/1.059, allocations: 301.1 kB / 0.9506 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00626/1.065, allocations: 2.164 MB / 0.9527 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006348/1.072, allocations: 2.525 MB / 0.9552 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/1.084, allocations: 4.68 MB / 0.9598 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.991e-05/1.084, allocations: 4 kB / 0.9598 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=347) (initialization): time 0.01541/1.1, allocations: 5.769 MB / 0.9654 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/1.1, allocations: 8 kB / 0.9654 GB, free: 8.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/1.1, allocations: 4 kB / 0.9654 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001944/1.102, allocations: 0.8317 MB / 0.9662 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004298/1.106, allocations: 0.7995 MB / 0.967 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01264/1.119, allocations: 7.578 MB / 0.9744 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00459/1.123, allocations: 0.5641 MB / 0.975 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008806/1.124, allocations: 115.9 kB / 0.9751 GB, free: 14.82 MB / 0.7481 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.003416/1.128, allocations: 1.025 MB / 0.9761 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001525/1.129, allocations: 325.9 kB / 0.9764 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0183/1.147, allocations: 6.389 MB / 0.9826 GB, free: 7.02 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.74e-05/1.147, allocations: 32 kB / 0.9826 GB, free: 6.988 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-05/1.147, allocations: 12 kB / 0.9827 GB, free: 6.977 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.383e-05/1.148, allocations: 15.94 kB / 0.9827 GB, free: 6.961 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02437/1.172, allocations: 10.72 MB / 0.9931 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/1.172, allocations: 0 / 0.9931 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004075/1.176, allocations: 0.7684 MB / 0.9939 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001956/1.178, allocations: 0.734 MB / 0.9946 GB, free: 10.6 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003546/1.178, allocations: 83.94 kB / 0.9947 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/1.192, allocations: 10.67 MB / 1.005 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/1.192, allocations: 8.062 kB / 1.005 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02221/1.214, allocations: 9.093 MB / 1.014 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002574/1.217, allocations: 0.9159 MB / 1.015 GB, free: 5.273 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005507/1.217, allocations: 71.88 kB / 1.015 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003123/1.22, allocations: 403.4 kB / 1.015 GB, free: 4.809 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005533/1.221, allocations: 214.2 kB / 1.016 GB, free: 4.598 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000299/1.221, allocations: 111.9 kB / 1.016 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.003147/1.224, allocations: 1.928 MB / 1.018 GB, free: 2.555 MB / 0.7794 GB Notification: Performance of sort global known variables: time 6.11e-07/1.224, allocations: 0 / 1.018 GB, free: 2.555 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003451/1.228, allocations: 1.224 MB / 1.019 GB, free: 1.328 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.0247/1.253, allocations: 10.59 MB / 1.029 GB, free: 6.992 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.01287/1.266, allocations: 5.485 MB / 1.034 GB, free: 1.469 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/1.266, allocations: 12.06 kB / 1.034 GB, free: 1.457 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.007276/1.273, allocations: 3.325 MB / 1.038 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003523/1.276, allocations: 0.7657 MB / 1.038 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3997/1.676, allocations: 33.32 MB / 1.071 GB, free: 313 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003231/1.679, allocations: 2.697 MB / 1.074 GB, free: 312.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.004485/1.684, allocations: 1.159 MB / 1.075 GB, free: 312.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002959/1.687, allocations: 1.64 MB / 1.076 GB, free: 312.2 MB / 0.8262 GB Notification: Performance of SimCode: time 6.91e-07/1.687, allocations: 1.594 kB / 1.076 GB, free: 312.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.132/1.819, allocations: 81.94 MB / 1.156 GB, free: 254.4 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.12/20.94, allocations: 7.922 kB / 1.156 GB, free: 254.4 MB / 0.8262 GB (rm -f IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; mkfifo IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe >> ../files/IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomFourElements.fmu > IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe 2>&1)