Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_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.0009132/0.0009131, allocations: 100.8 kB / 16.27 MB, free: 5.93 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.0009846/0.0009847, allocations: 189.6 kB / 17.2 MB, free: 5.574 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.244/1.244, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7069/0.7069, allocations: 122.9 MB / 413.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.91 kB / 0.4912 GB, free: 7.379 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3172, allocations: 77.93 MB / 0.5673 GB, free: 32.61 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004322/0.3216, allocations: 3.72 MB / 0.5709 GB, free: 30.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.324, allocations: 1.796 MB / 0.5727 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.3241, allocations: 18.41 kB / 0.5727 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007195/0.3249, allocations: 265.4 kB / 0.573 GB, free: 28.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005105/0.3254, allocations: 299.3 kB / 0.5732 GB, free: 28.49 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004787/0.3259, allocations: 244.5 kB / 0.5735 GB, free: 28.38 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005145/0.3264, allocations: 0.6092 MB / 0.5741 GB, free: 28.09 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003724/0.3268, allocations: 256 kB / 0.5743 GB, free: 27.99 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.3271, allocations: 243.2 kB / 0.5745 GB, free: 27.88 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000267/0.3274, allocations: 229.3 kB / 0.5748 GB, free: 27.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.648e-05/0.3274, allocations: 27.59 kB / 0.5748 GB, free: 27.79 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004236/0.3278, allocations: 269.9 kB / 0.5751 GB, free: 27.7 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.328, allocations: 127.4 kB / 0.5752 GB, free: 27.64 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.3281, allocations: 211.1 kB / 0.5754 GB, free: 27.51 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006276/0.3288, allocations: 0.5856 MB / 0.5759 GB, free: 27.3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3288, allocations: 0 / 0.5759 GB, free: 27.3 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3288, allocations: 1.031 kB / 0.5759 GB, free: 27.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3288, allocations: 0.625 kB / 0.5759 GB, free: 27.3 MB / 446.1 MB 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.0009546/0.3298, allocations: 0.7258 MB / 0.5767 GB, free: 26.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.3298, allocations: 9.5 kB / 0.5767 GB, free: 26.73 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.88e-05/0.3299, allocations: 76.16 kB / 0.5767 GB, free: 26.67 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008497/0.3307, allocations: 133.5 kB / 0.5769 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.3311, allocations: 377.8 kB / 0.5772 GB, free: 26.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.3312, allocations: 20.47 kB / 0.5772 GB, free: 26.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.201e-05/0.3312, allocations: 39.27 kB / 0.5773 GB, free: 26.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006945/0.3319, allocations: 0.5541 MB / 0.5778 GB, free: 25.97 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.3319, allocations: 2.219 kB / 0.5778 GB, free: 25.97 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.332, allocations: 20.75 kB / 0.5778 GB, free: 25.96 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.872e-05/0.332, allocations: 42.62 kB / 0.5779 GB, free: 25.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006298/0.3327, allocations: 410.3 kB / 0.5783 GB, free: 25.81 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.3348, allocations: 3.338 MB / 0.5815 GB, free: 22.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006343/0.3355, allocations: 331.7 kB / 0.5819 GB, free: 22.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/0.3358, allocations: 178.7 kB / 0.582 GB, free: 22.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.3358, allocations: 3.562 kB / 0.582 GB, free: 22.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.3359, allocations: 38.09 kB / 0.5821 GB, free: 22.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.3359, allocations: 0 / 0.5821 GB, free: 22.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=27): time 0.001752/0.3376, allocations: 1.064 MB / 0.5831 GB, free: 21.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.07e-05/0.3377, allocations: 54.11 kB / 0.5832 GB, free: 21.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.3379, allocations: 343.3 kB / 0.5835 GB, free: 21.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.3379, allocations: 28.8 kB / 0.5835 GB, free: 21.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.858e-05/0.338, allocations: 237.3 kB / 0.5837 GB, free: 21.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.846e-05/0.3381, allocations: 107.4 kB / 0.5838 GB, free: 21.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.243e-05/0.3382, allocations: 77.97 kB / 0.5839 GB, free: 21.24 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.522e-05/0.3383, allocations: 347.5 kB / 0.5842 GB, free: 20.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.3385, allocations: 146.8 kB / 0.5844 GB, free: 20.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.3388, allocations: 294.6 kB / 0.5847 GB, free: 20.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000554/0.3393, allocations: 483 kB / 0.5851 GB, free: 20.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.3394, allocations: 2.125 kB / 0.5851 GB, free: 20.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008321/0.3402, allocations: 0.5584 MB / 0.5857 GB, free: 19.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3402, allocations: 14.64 kB / 0.5857 GB, free: 19.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3402, allocations: 5.062 kB / 0.5857 GB, free: 19.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002614/0.3405, allocations: 88.3 kB / 0.5858 GB, free: 19.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003049/0.3408, allocations: 85.22 kB / 0.5859 GB, free: 19.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.3408, allocations: 14.12 kB / 0.5859 GB, free: 19.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.3411, allocations: 28.75 kB / 0.5859 GB, free: 19.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/0.3411, allocations: 17.56 kB / 0.5859 GB, free: 19.82 MB / 446.1 MB 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.3413, allocations: 180.6 kB / 0.5861 GB, free: 19.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.817e-05/0.3413, allocations: 42.12 kB / 0.5861 GB, free: 19.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007388/0.3421, allocations: 467.9 kB / 0.5866 GB, free: 19.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3421, allocations: 2.562 kB / 0.5866 GB, free: 19.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3421, allocations: 1.312 kB / 0.5866 GB, free: 19.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.3421, allocations: 0 / 0.5866 GB, free: 19.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.3432, allocations: 0.9671 MB / 0.5875 GB, free: 18.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3433, allocations: 1.188 kB / 0.5875 GB, free: 18.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.3435, allocations: 56.95 kB / 0.5876 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.3437, allocations: 79.86 kB / 0.5877 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.3437, allocations: 10.2 kB / 0.5877 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.3437, allocations: 2.531 kB / 0.5877 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3437, allocations: 1.562 kB / 0.5877 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006597/0.3444, allocations: 0.543 MB / 0.5882 GB, free: 18.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.3445, allocations: 138.3 kB / 0.5883 GB, free: 18.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.04e-05/0.3446, allocations: 6.562 kB / 0.5883 GB, free: 18.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.3448, allocations: 26.28 kB / 0.5884 GB, free: 18.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.091e-05/0.3448, allocations: 27.34 kB / 0.5884 GB, free: 18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.3449, allocations: 8.938 kB / 0.5884 GB, free: 18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001766/0.345, allocations: 233.4 kB / 0.5886 GB, free: 17.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3451, allocations: 1.688 kB / 0.5886 GB, free: 17.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004079/0.3455, allocations: 88.47 kB / 0.5887 GB, free: 17.84 MB / 446.1 MB 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008412/0.3463, allocations: 1.086 MB / 0.5898 GB, free: 16.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007471/0.3471, allocations: 0.6703 MB / 0.5904 GB, free: 16.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3471, allocations: 0 / 0.5904 GB, free: 16.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003282/0.3474, allocations: 436.1 kB / 0.5908 GB, free: 16.03 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006494/0.3481, allocations: 133.1 kB / 0.591 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003731/0.3518, allocations: 3.743 MB / 0.5946 GB, free: 13.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.352, allocations: 0.825 MB / 0.5954 GB, free: 12.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002498/0.3523, allocations: 83.95 kB / 0.5955 GB, free: 12.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.3524, allocations: 128.6 kB / 0.5956 GB, free: 12.23 MB / 446.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3525, allocations: 0 / 0.5956 GB, free: 12.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.3737, allocations: 8.176 MB / 0.6036 GB, free: 4.629 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.454/8.827, allocations: 12.41 kB / 0.6036 GB, free: 4.621 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)