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.0008513/0.0008513, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009484/0.0009485, allocations: 172.7 kB / 15.95 MB, free: 208 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.578/1.578, allocations: 223.3 MB / 240 MB, free: 5.414 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.501/2.501, allocations: 390.4 MB / 0.6655 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003796/0.0003797, allocations: 8.219 kB / 0.8149 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8677/0.8681, allocations: 142.3 MB / 0.9539 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.00375/0.8719, allocations: 3.255 MB / 0.957 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002477/0.8744, allocations: 1.684 MB / 0.9587 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000227/0.8747, allocations: 15.03 kB / 0.9587 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002027/0.8749, allocations: 54.69 kB / 0.9588 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000535/0.8754, allocations: 230.1 kB / 0.959 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004344/0.8759, allocations: 189.1 kB / 0.9592 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005913/0.8765, allocations: 0.6374 MB / 0.9598 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006201/0.8771, allocations: 326.9 kB / 0.9601 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003134/0.8774, allocations: 198.3 kB / 0.9603 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002774/0.8777, allocations: 218 kB / 0.9605 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.794e-05/0.8778, allocations: 13.75 kB / 0.9605 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002895/0.8781, allocations: 128.4 kB / 0.9606 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.8782, allocations: 112.9 kB / 0.9607 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.856e-05/0.8783, allocations: 98.27 kB / 0.9608 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000424/0.8787, allocations: 439.6 kB / 0.9612 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.8787, allocations: 0 / 0.9612 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.234e-06/0.8788, allocations: 1.031 kB / 0.9612 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.8788, allocations: 4 kB / 0.9612 GB, free: 2.578 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.000997/0.8798, allocations: 0.6569 MB / 0.9619 GB, free: 2 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.8798, allocations: 9.594 kB / 0.9619 GB, free: 2 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.95e-05/0.8799, allocations: 66.69 kB / 0.962 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008464/0.8808, allocations: 137.6 kB / 0.9621 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004748/0.8812, allocations: 373.4 kB / 0.9625 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.8813, allocations: 25.33 kB / 0.9625 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.03e-05/0.8814, allocations: 27 kB / 0.9625 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009945/0.8824, allocations: 0.5587 MB / 0.963 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.8824, allocations: 6.125 kB / 0.9631 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.8824, allocations: 20.44 kB / 0.9631 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.32e-05/0.8825, allocations: 42.75 kB / 0.9631 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007918/0.8833, allocations: 415.5 kB / 0.9635 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003891/0.8872, allocations: 3.332 MB / 0.9668 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008431/0.8881, allocations: 334.8 kB / 0.9671 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003989/0.8885, allocations: 181.9 kB / 0.9673 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.8886, allocations: 6.938 kB / 0.9673 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.8886, allocations: 47.45 kB / 0.9673 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=26): time 2.795e-06/0.8886, allocations: 1.062 kB / 0.9673 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=27): time 0.002687/0.8913, allocations: 1.08 MB / 0.9684 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/0.8914, allocations: 54.64 kB / 0.9684 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005933/0.892, allocations: 340.1 kB / 0.9687 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/0.8921, allocations: 30.83 kB / 0.9688 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002467/0.8923, allocations: 250.7 kB / 0.969 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.8925, allocations: 94.78 kB / 0.9691 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.984e-05/0.8925, allocations: 5.969 kB / 0.9691 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002225/0.8927, allocations: 347.1 kB / 0.9694 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.8931, allocations: 157.6 kB / 0.9696 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005489/0.8936, allocations: 294.1 kB / 0.9699 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004602/0.8941, allocations: 195.2 kB / 0.9701 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.8941, allocations: 2.031 kB / 0.9701 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001278/0.8954, allocations: 0.5757 MB / 0.9706 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/0.8955, allocations: 11 kB / 0.9706 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.8955, allocations: 4.156 kB / 0.9706 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003672/0.8959, allocations: 86.77 kB / 0.9707 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000405/0.8963, allocations: 90.69 kB / 0.9708 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.519e-05/0.8963, allocations: 11.12 kB / 0.9708 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.8967, allocations: 36.03 kB / 0.9708 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/0.8967, allocations: 22.48 kB / 0.9709 GB, free: 10.76 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.000279/0.897, allocations: 172.3 kB / 0.971 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.48e-05/0.8971, allocations: 38.81 kB / 0.9711 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.8981, allocations: 471.4 kB / 0.9715 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.8982, allocations: 2.25 kB / 0.9715 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.8982, allocations: 1.25 kB / 0.9715 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-05/0.8982, allocations: 5.016 kB / 0.9715 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.9001, allocations: 0.9784 MB / 0.9725 GB, free: 9.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.9001, allocations: 1.219 kB / 0.9725 GB, free: 9.578 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002486/0.9004, allocations: 53.64 kB / 0.9725 GB, free: 9.562 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002373/0.9006, allocations: 84.97 kB / 0.9726 GB, free: 9.504 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.9006, allocations: 6.094 kB / 0.9726 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.166e-06/0.9007, allocations: 6.891 kB / 0.9726 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.9007, allocations: 0 / 0.9726 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009806/0.9016, allocations: 0.5602 MB / 0.9732 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001976/0.9019, allocations: 134 kB / 0.9733 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.226e-05/0.9019, allocations: 6.938 kB / 0.9733 GB, free: 8.977 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.9021, allocations: 24.88 kB / 0.9733 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.838e-05/0.9022, allocations: 22.47 kB / 0.9734 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.9023, allocations: 5.688 kB / 0.9734 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002785/0.9026, allocations: 235.1 kB / 0.9736 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9026, allocations: 0 / 0.9736 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000499/0.9031, allocations: 96.64 kB / 0.9737 GB, free: 8.781 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.001336/0.9044, allocations: 1.096 MB / 0.9747 GB, free: 7.871 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00103/0.9055, allocations: 0.6424 MB / 0.9754 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.9055, allocations: 5.125 kB / 0.9754 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005402/0.906, allocations: 439.1 kB / 0.9758 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007497/0.9068, allocations: 119 kB / 0.9759 GB, free: 6.922 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/0.9106, allocations: 2.352 MB / 0.9782 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005068/0.9111, allocations: 0.8213 MB / 0.979 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003533/0.9114, allocations: 79.78 kB / 0.9791 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.9117, allocations: 131.9 kB / 0.9792 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of SimCode: time 1.482e-06/0.9117, allocations: 0 / 0.9792 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02385/0.9355, allocations: 7.821 MB / 0.9868 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.9358, allocations: 221 kB / 0.9871 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.875, allocations: 0 / 0.9871 GB, free: 13.19 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