Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.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.SimpleRoomTwoElements,fileNamePrefix="IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,fileNamePrefix="IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements",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.001035/0.001035, 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.001184/0.001184, allocations: 194.4 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.457/1.457, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9834/0.9834, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001575, allocations: 65.38 kB / 0.5054 GB, free: 5.219 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.207, allocations: 80.93 MB / 0.5845 GB, free: 4.445 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.5931/0.8002, allocations: 160.8 MB / 0.7415 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.04092/0.8411, allocations: 26.77 MB / 0.7676 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004529/0.8457, allocations: 75.62 kB / 0.7677 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003247/0.849, allocations: 1.014 MB / 0.7687 GB, free: 32 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006278/0.8553, allocations: 1.674 MB / 0.7703 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005365/0.8607, allocations: 1.7 MB / 0.772 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.007196/0.8679, allocations: 4.804 MB / 0.7767 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00697/0.8749, allocations: 4.263 MB / 0.7808 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004439/0.8794, allocations: 2.007 MB / 0.7828 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004305/0.8837, allocations: 2.441 MB / 0.7852 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001767/0.8855, allocations: 452 kB / 0.7856 GB, free: 14.65 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003516/0.889, allocations: 1.023 MB / 0.7866 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.002038/0.8911, allocations: 1.168 MB / 0.7877 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.004206/0.8953, allocations: 2.037 MB / 0.7897 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.008181/0.9035, allocations: 5.698 MB / 0.7953 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.9036, allocations: 0 / 0.7953 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.294e-06/0.9036, allocations: 0 / 0.7953 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.000217/0.9038, allocations: 0 / 0.7953 GB, free: 4.691 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0127/0.9165, allocations: 4.499 MB / 0.7997 GB, free: 128 kB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.9166, allocations: 8.031 kB / 0.7997 GB, free: 120 kB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00136/0.9179, allocations: 459.1 kB / 0.8001 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0151/0.933, allocations: 2.776 MB / 0.8028 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007363/0.9405, allocations: 2.247 MB / 0.805 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002769/0.9408, allocations: 246.5 kB / 0.8053 GB, free: 10.3 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001366/0.9422, allocations: 312 kB / 0.8056 GB, free: 10 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01565/0.9578, allocations: 5.136 MB / 0.8106 GB, free: 4.785 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001368/0.958, allocations: 4 kB / 0.8106 GB, free: 4.781 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001121/0.9591, allocations: 132 kB / 0.8107 GB, free: 4.652 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.879e-05/0.9592, allocations: 83.88 kB / 0.8108 GB, free: 4.57 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01779/0.977, allocations: 6.288 MB / 0.8169 GB, free: 14.27 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.03433/1.011, allocations: 14.53 MB / 0.8311 GB, free: 15.22 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01134/1.023, allocations: 4.519 MB / 0.8355 GB, free: 10.69 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005805/1.029, allocations: 2.45 MB / 0.8379 GB, free: 8.234 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001117/1.03, allocations: 0.6775 MB / 0.8386 GB, free: 7.426 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006373/1.036, allocations: 2.458 MB / 0.841 GB, free: 4.926 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=270): time 8.065e-06/1.036, allocations: 0 / 0.841 GB, free: 4.926 MB / 0.6544 GB Notification: Performance of matching and sorting (n=270): time 0.02128/1.057, allocations: 7.543 MB / 0.8483 GB, free: 13.26 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/1.058, allocations: 214 kB / 0.8485 GB, free: 13.01 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004927/1.063, allocations: 2.394 MB / 0.8509 GB, free: 10.59 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0006971/1.063, allocations: 73.7 kB / 0.851 GB, free: 10.51 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001486/1.065, allocations: 1.361 MB / 0.8523 GB, free: 9.129 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.001578/1.066, allocations: 0.8972 MB / 0.8532 GB, free: 8.219 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002285/1.069, allocations: 480.3 kB / 0.8536 GB, free: 7.742 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001246/1.069, allocations: 305.1 kB / 0.8539 GB, free: 7.441 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005349/1.074, allocations: 1.952 MB / 0.8558 GB, free: 5.484 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005482/1.08, allocations: 2.256 MB / 0.858 GB, free: 3.141 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3079/1.388, allocations: 4.201 MB / 0.8621 GB, free: 214.9 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.036e-05/1.388, allocations: 3.125 kB / 0.8621 GB, free: 214.9 MB / 0.67 GB Notification: Performance of matching and sorting (n=300) (initialization): time 0.01234/1.4, allocations: 4.911 MB / 0.8669 GB, free: 214.5 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/1.4, allocations: 8.375 kB / 0.8669 GB, free: 214.5 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/1.4, allocations: 6.312 kB / 0.8669 GB, free: 214.5 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008074/1.401, allocations: 347.4 kB / 0.8673 GB, free: 214.5 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004045/1.405, allocations: 0.7684 MB / 0.868 GB, free: 214.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005588/1.411, allocations: 4.248 MB / 0.8722 GB, free: 211.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00498/1.416, allocations: 0.531 MB / 0.8727 GB, free: 211.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005212/1.416, allocations: 107.7 kB / 0.8728 GB, free: 211.7 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 (270): * Single equations (assignments): 269 * 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 {(3,28,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002146/1.418, allocations: 0.9219 MB / 0.8737 GB, free: 211.3 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007543/1.419, allocations: 270.4 kB / 0.8739 GB, free: 211.2 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/1.431, allocations: 5.544 MB / 0.8794 GB, free: 209.4 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.36e-05/1.431, allocations: 34.28 kB / 0.8794 GB, free: 209.4 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/1.431, allocations: 9.375 kB / 0.8794 GB, free: 209.4 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.679e-05/1.431, allocations: 10.55 kB / 0.8794 GB, free: 209.4 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01724/1.448, allocations: 9.297 MB / 0.8885 GB, free: 206.2 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/1.448, allocations: 0 / 0.8885 GB, free: 206.2 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003956/1.452, allocations: 0.7328 MB / 0.8892 GB, free: 206.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001195/1.453, allocations: 386.8 kB / 0.8896 GB, free: 206 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000267/1.454, allocations: 79.78 kB / 0.8896 GB, free: 206 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00671/1.46, allocations: 6.291 MB / 0.8958 GB, free: 201.1 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.461, allocations: 0 / 0.8958 GB, free: 201.1 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02373/1.484, allocations: 7.923 MB / 0.9035 GB, free: 198.4 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/1.487, allocations: 0.8102 MB / 0.9043 GB, free: 197.9 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001491/1.489, allocations: 60.39 kB / 0.9044 GB, free: 197.9 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004301/1.493, allocations: 387.6 kB / 0.9047 GB, free: 197.9 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008931/1.494, allocations: 176.9 kB / 0.9049 GB, free: 197.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006071/1.494, allocations: 93.27 kB / 0.905 GB, free: 197.8 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.00406/1.498, allocations: 1.759 MB / 0.9067 GB, free: 197.2 MB / 0.67 GB Notification: Performance of sort global known variables: time 4.91e-07/1.498, allocations: 0 / 0.9067 GB, free: 197.2 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.006032/1.505, allocations: 1.014 MB / 0.9077 GB, free: 197 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (thermalZoneTwoElements.volAir.dynBal.U,thermalZoneTwoElements.volAir.dynBal.m,thermalZoneTwoElements.extWallRC.thermCapExt[1].T,thermalZoneTwoElements.intWallRC.thermCapInt[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 (254): * Single equations (assignments): 247 * 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 {(3,25,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.02595/1.531, allocations: 9.412 MB / 0.9169 GB, free: 193.5 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.02402/1.555, allocations: 8.1 MB / 0.9248 GB, free: 192 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.317e-05/1.555, allocations: 4.062 kB / 0.9248 GB, free: 192 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.006525/1.561, allocations: 2.757 MB / 0.9275 GB, free: 191 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003844/1.565, allocations: 0.6759 MB / 0.9282 GB, free: 190.7 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05468/1.62, allocations: 32.05 MB / 0.9595 GB, free: 161.5 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001682/1.621, allocations: 2.455 MB / 0.9619 GB, free: 159 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.004312/1.626, allocations: 1.099 MB / 0.9629 GB, free: 157.9 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002299/1.628, allocations: 1.44 MB / 0.9643 GB, free: 156.5 MB / 0.67 GB Notification: Performance of SimCode: time 1.382e-06/1.628, allocations: 0 / 0.9643 GB, free: 156.5 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.164/1.792, allocations: 69.15 MB / 1.032 GB, free: 87.82 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/15.09, allocations: 15.08 kB / 1.032 GB, free: 87.81 MB / 0.67 GB (rm -f IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; mkfifo IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe >> ../files/IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements.fmu > IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1)