Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.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.SimpleRoomThreeElements,fileNamePrefix="IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,fileNamePrefix="IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements",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.001395/0.001395, allocations: 108 kB / 15.6 MB, free: 132 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.001789/0.001789, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.42/1.42, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.024/1.024, allocations: 135.1 MB / 425.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 64.02 kB / 0.5054 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2091, allocations: 80.93 MB / 0.5845 GB, free: 4.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements): time 0.5954/0.8046, allocations: 161.7 MB / 0.7424 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.04164/0.8463, allocations: 27.04 MB / 0.7688 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005111/0.8514, allocations: 79.62 kB / 0.7689 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002906/0.8544, allocations: 1.068 MB / 0.7699 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008125/0.8625, allocations: 1.75 MB / 0.7716 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006122/0.8687, allocations: 1.792 MB / 0.7734 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.008318/0.877, allocations: 5.187 MB / 0.7784 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006635/0.8837, allocations: 4.522 MB / 0.7829 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005724/0.8894, allocations: 2.122 MB / 0.7849 GB, free: 15.35 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004921/0.8944, allocations: 2.592 MB / 0.7875 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001404/0.8958, allocations: 488 kB / 0.7879 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003015/0.8988, allocations: 1.058 MB / 0.789 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001214/0.9, allocations: 1.25 MB / 0.7902 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.003328/0.9034, allocations: 2.181 MB / 0.7923 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.008036/0.9114, allocations: 6.103 MB / 0.7983 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.9115, allocations: 0 / 0.7983 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of FrontEnd: time 5.531e-06/0.9115, allocations: 0 / 0.7983 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001898/0.9117, allocations: 3.938 kB / 0.7983 GB, free: 1.641 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: 882 * Number of variables: 882 Notification: Performance of Generate backend data structure: time 0.01322/0.9249, allocations: 4.747 MB / 0.8029 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.925, allocations: 15.97 kB / 0.8029 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001062/0.9261, allocations: 484.5 kB / 0.8034 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01426/0.9403, allocations: 2.788 MB / 0.8061 GB, free: 9.527 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006094/0.9465, allocations: 2.357 MB / 0.8084 GB, free: 7.098 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002448/0.9468, allocations: 258.9 kB / 0.8087 GB, free: 6.844 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001004/0.9478, allocations: 340 kB / 0.809 GB, free: 6.512 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01385/0.9616, allocations: 5.385 MB / 0.8142 GB, free: 1.055 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.9618, allocations: 7.938 kB / 0.8143 GB, free: 1.047 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006882/0.9625, allocations: 140 kB / 0.8144 GB, free: 0.9102 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.869e-05/0.9626, allocations: 84 kB / 0.8145 GB, free: 0.8281 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0165/0.9791, allocations: 6.531 MB / 0.8208 GB, free: 10.29 MB / 0.6387 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.03187/1.011, allocations: 15.73 MB / 0.8362 GB, free: 9.938 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00963/1.021, allocations: 4.076 MB / 0.8402 GB, free: 5.848 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005873/1.027, allocations: 2.659 MB / 0.8428 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001025/1.028, allocations: 0.6697 MB / 0.8434 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005987/1.034, allocations: 2.576 MB / 0.846 GB, free: 15.77 MB / 0.67 GB Notification: Performance of pre-optimization done (n=288): time 6.152e-06/1.034, allocations: 0 / 0.846 GB, free: 15.77 MB / 0.67 GB Notification: Performance of matching and sorting (n=288): time 0.02193/1.056, allocations: 8.398 MB / 0.8542 GB, free: 7.254 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/1.056, allocations: 210.2 kB / 0.8544 GB, free: 7.004 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00398/1.06, allocations: 2.517 MB / 0.8568 GB, free: 4.465 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0003495/1.06, allocations: 77.7 kB / 0.8569 GB, free: 4.383 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001384/1.061, allocations: 1.436 MB / 0.8583 GB, free: 2.93 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.001041/1.063, allocations: 0.9664 MB / 0.8592 GB, free: 1.949 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001078/1.064, allocations: 496.9 kB / 0.8597 GB, free: 1.457 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.164e-05/1.064, allocations: 305.1 kB / 0.86 GB, free: 1.156 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3064/1.37, allocations: 2.034 MB / 0.862 GB, free: 215.2 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005191/1.375, allocations: 2.365 MB / 0.8643 GB, free: 215 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009252/1.385, allocations: 4.408 MB / 0.8686 GB, free: 214 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/1.385, allocations: 2.938 kB / 0.8686 GB, free: 214 MB / 0.67 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.01136/1.396, allocations: 5.274 MB / 0.8738 GB, free: 212.5 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/1.396, allocations: 9.594 kB / 0.8738 GB, free: 212.5 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/1.396, allocations: 6.609 kB / 0.8738 GB, free: 212.5 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/1.397, allocations: 0.5425 MB / 0.8743 GB, free: 212.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003902/1.401, allocations: 0.7855 MB / 0.8751 GB, free: 212.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006719/1.408, allocations: 5.726 MB / 0.8807 GB, free: 209 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004233/1.412, allocations: 0.5428 MB / 0.8812 GB, free: 209 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005174/1.413, allocations: 110 kB / 0.8813 GB, free: 209 MB / 0.67 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 (274): * Single equations (assignments): 273 * 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 {(4,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002159/1.415, allocations: 0.9712 MB / 0.8822 GB, free: 208.6 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007163/1.416, allocations: 284 kB / 0.8825 GB, free: 208.4 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01227/1.428, allocations: 5.889 MB / 0.8883 GB, free: 206.5 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.913e-05/1.428, allocations: 32.47 kB / 0.8883 GB, free: 206.5 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/1.428, allocations: 15.97 kB / 0.8883 GB, free: 206.5 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.669e-05/1.428, allocations: 13.41 kB / 0.8883 GB, free: 206.5 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01994/1.448, allocations: 9.895 MB / 0.898 GB, free: 203 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.448, allocations: 0.6562 kB / 0.898 GB, free: 203 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003949/1.452, allocations: 0.7482 MB / 0.8987 GB, free: 202.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/1.454, allocations: 0.5345 MB / 0.8992 GB, free: 202.8 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003437/1.454, allocations: 80.06 kB / 0.8993 GB, free: 202.7 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008707/1.463, allocations: 7.554 MB / 0.9067 GB, free: 197.3 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.463, allocations: 3.375 kB / 0.9067 GB, free: 197.3 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02228/1.485, allocations: 8.392 MB / 0.9149 GB, free: 194.3 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002342/1.487, allocations: 0.8382 MB / 0.9157 GB, free: 193.9 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007236/1.488, allocations: 63.48 kB / 0.9158 GB, free: 193.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00324/1.491, allocations: 401.2 kB / 0.9162 GB, free: 193.8 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005595/1.492, allocations: 194.1 kB / 0.9163 GB, free: 193.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002621/1.492, allocations: 100.5 kB / 0.9164 GB, free: 193.7 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.00278/1.495, allocations: 1.836 MB / 0.9182 GB, free: 193.1 MB / 0.67 GB Notification: Performance of sort global known variables: time 3e-07/1.495, allocations: 0 / 0.9182 GB, free: 193.1 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003491/1.498, allocations: 1.101 MB / 0.9193 GB, free: 192.8 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (thermalZoneThreeElements.volAir.dynBal.U,thermalZoneThreeElements.volAir.dynBal.m,thermalZoneThreeElements.extWallRC.thermCapExt[1].T,thermalZoneThreeElements.intWallRC.thermCapInt[1].T,thermalZoneThreeElements.floorRC.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 (260): * Single equations (assignments): 253 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,36,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.01901/1.517, allocations: 9.886 MB / 0.929 GB, free: 189.2 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01996/1.537, allocations: 8.59 MB / 0.9373 GB, free: 185 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/1.538, allocations: 4 kB / 0.9374 GB, free: 185 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.005926/1.543, allocations: 2.949 MB / 0.9402 GB, free: 182.1 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004083/1.548, allocations: 0.7317 MB / 0.9409 GB, free: 181.4 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06832/1.616, allocations: 34.37 MB / 0.9745 GB, free: 145.4 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003436/1.619, allocations: 2.551 MB / 0.977 GB, free: 142.8 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.005487/1.625, allocations: 1.129 MB / 0.9781 GB, free: 141.6 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003186/1.628, allocations: 1.514 MB / 0.9796 GB, free: 140.1 MB / 0.67 GB Notification: Performance of SimCode: time 1.823e-06/1.628, allocations: 0 / 0.9796 GB, free: 140.1 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1189/1.747, allocations: 74.21 MB / 1.052 GB, free: 66.48 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/15.39, allocations: 11.62 kB / 1.052 GB, free: 66.47 MB / 0.67 GB (rm -f IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; mkfifo IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe >> ../files/IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements.fmu > IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe 2>&1)