Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.0009678/0.0009679, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.0009016/0.0009015, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.59/2.59, allocations: 390.3 MB / 0.6653 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0006744/0.0006745, allocations: 12 kB / 0.8146 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.837/0.8377, allocations: 142.3 MB / 0.9536 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.003928/0.8417, allocations: 3.162 MB / 0.9567 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002561/0.8443, allocations: 1.67 MB / 0.9583 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004014/0.8447, allocations: 15.56 kB / 0.9583 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002361/0.845, allocations: 42.16 kB / 0.9584 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008065/0.8458, allocations: 235.1 kB / 0.9586 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005998/0.8464, allocations: 191.7 kB / 0.9588 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000723/0.8472, allocations: 396.8 kB / 0.9592 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006189/0.8478, allocations: 333.6 kB / 0.9595 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000417/0.8482, allocations: 188.8 kB / 0.9597 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004131/0.8486, allocations: 192.4 kB / 0.9598 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.581e-05/0.8487, allocations: 12.19 kB / 0.9598 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003458/0.8491, allocations: 102.6 kB / 0.9599 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.8492, allocations: 98.78 kB / 0.96 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.8493, allocations: 94.89 kB / 0.9601 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005079/0.8498, allocations: 399.8 kB / 0.9605 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.8499, allocations: 3.938 kB / 0.9605 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.144e-06/0.8499, allocations: 1.188 kB / 0.9605 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.852e-05/0.8499, allocations: 0 / 0.9605 GB, free: 2.879 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001192/0.8511, allocations: 0.6621 MB / 0.9612 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.8511, allocations: 9.25 kB / 0.9612 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.8513, allocations: 78.33 kB / 0.9612 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008288/0.8521, allocations: 119.4 kB / 0.9614 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005717/0.8527, allocations: 373.3 kB / 0.9617 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.8527, allocations: 20.12 kB / 0.9617 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.301e-05/0.8528, allocations: 35.58 kB / 0.9618 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007985/0.8536, allocations: 0.5492 MB / 0.9623 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.8536, allocations: 1.125 kB / 0.9623 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.763e-05/0.8537, allocations: 17.02 kB / 0.9623 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.65e-05/0.8537, allocations: 41.75 kB / 0.9624 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007248/0.8545, allocations: 420.2 kB / 0.9628 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002789/0.8573, allocations: 3.332 MB / 0.966 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007134/0.858, allocations: 345.8 kB / 0.9663 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.858, allocations: 2.125 kB / 0.9663 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.8581, allocations: 32.97 kB / 0.9664 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=26): time 1.943e-06/0.8581, allocations: 0 / 0.9664 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of matching and sorting (n=27): time 0.002436/0.8605, allocations: 1.081 MB / 0.9674 GB, free: 13 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.8606, allocations: 54.92 kB / 0.9675 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005377/0.8611, allocations: 335.4 kB / 0.9678 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.8612, allocations: 31.77 kB / 0.9678 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.8614, allocations: 245.8 kB / 0.9681 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.8615, allocations: 99.08 kB / 0.9682 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.276e-05/0.8616, allocations: 9.969 kB / 0.9682 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001952/0.8618, allocations: 346.9 kB / 0.9685 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003505/0.8621, allocations: 153.5 kB / 0.9687 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004711/0.8626, allocations: 292.9 kB / 0.9689 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003995/0.863, allocations: 199.5 kB / 0.9691 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.863, allocations: 1.656 kB / 0.9691 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001212/0.8643, allocations: 0.5751 MB / 0.9697 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.8643, allocations: 7.219 kB / 0.9697 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.8643, allocations: 4.188 kB / 0.9697 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003441/0.8647, allocations: 86.86 kB / 0.9698 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004039/0.8651, allocations: 94.62 kB / 0.9699 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.062e-05/0.8651, allocations: 6.969 kB / 0.9699 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003622/0.8655, allocations: 32.5 kB / 0.9699 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.454e-05/0.8655, allocations: 18.53 kB / 0.9699 GB, free: 11.17 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002573/0.8658, allocations: 185.2 kB / 0.9701 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.785e-05/0.8659, allocations: 43.62 kB / 0.9701 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000999/0.8669, allocations: 470.6 kB / 0.9706 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.8669, allocations: 2.406 kB / 0.9706 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.8669, allocations: 5.312 kB / 0.9706 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.867, allocations: 3.984 kB / 0.9706 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.8687, allocations: 0.9666 MB / 0.9715 GB, free: 9.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.8687, allocations: 5.375 kB / 0.9716 GB, free: 9.977 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002479/0.869, allocations: 49.75 kB / 0.9716 GB, free: 9.965 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002545/0.8692, allocations: 84.94 kB / 0.9717 GB, free: 9.906 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.8693, allocations: 5.719 kB / 0.9717 GB, free: 9.902 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.8693, allocations: 6.25 kB / 0.9717 GB, free: 9.898 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.095e-05/0.8693, allocations: 12.97 kB / 0.9717 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009829/0.8703, allocations: 0.5883 MB / 0.9723 GB, free: 9.453 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002788/0.8706, allocations: 138.5 kB / 0.9724 GB, free: 9.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.165e-05/0.8707, allocations: 2.531 kB / 0.9724 GB, free: 9.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002779/0.8709, allocations: 29.47 kB / 0.9724 GB, free: 9.305 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.118e-05/0.871, allocations: 30.22 kB / 0.9725 GB, free: 9.285 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.8711, allocations: 9.969 kB / 0.9725 GB, free: 9.281 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003291/0.8714, allocations: 238.3 kB / 0.9727 GB, free: 9.125 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8714, allocations: 1.312 kB / 0.9727 GB, free: 9.125 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005657/0.872, allocations: 84.03 kB / 0.9728 GB, free: 9.117 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001444/0.8734, allocations: 1.339 MB / 0.9741 GB, free: 7.953 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009606/0.8744, allocations: 0.639 MB / 0.9747 GB, free: 7.465 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.8744, allocations: 0 / 0.9747 GB, free: 7.465 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004705/0.8749, allocations: 447.6 kB / 0.9751 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00064/0.8755, allocations: 117.6 kB / 0.9753 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005411/0.881, allocations: 5.35 MB / 0.9805 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004885/0.8815, allocations: 0.8398 MB / 0.9813 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003466/0.8818, allocations: 75.36 kB / 0.9814 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/0.8821, allocations: 128.6 kB / 0.9815 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of SimCode: time 9.82e-07/0.8821, allocations: 0 / 0.9815 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02534/0.9074, allocations: 7.793 MB / 0.9891 GB, free: 10.81 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/0.9077, allocations: 221.7 kB / 0.9893 GB, free: 10.56 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.78, allocations: 4 kB / 0.9893 GB, free: 10.56 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat does not exist to compare? outputFormat=mat