Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001271, allocations: 116.5 kB / 16.37 MB, free: 6.012 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.001242/0.001242, allocations: 192.6 kB / 17.31 MB, free: 5.609 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.272/1.272, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002074/0.002074, allocations: 288.6 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.904/0.904, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 91.72 kB / 0.5967 GB, free: 14.42 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1565, allocations: 86.98 MB / 0.6816 GB, free: 7.434 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005624/0.1621, allocations: 4.844 MB / 0.6863 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003359/0.1655, allocations: 2.455 MB / 0.6887 GB, free: 100 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.1657, allocations: 27.81 kB / 0.6888 GB, free: 72 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.28/0.4458, allocations: 398.5 kB / 0.6891 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001651/0.4474, allocations: 444.2 kB / 0.6896 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.4485, allocations: 368 kB / 0.6899 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001597/0.4501, allocations: 0.9176 MB / 0.6908 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007523/0.4509, allocations: 354.6 kB / 0.6912 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007714/0.4517, allocations: 340 kB / 0.6915 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007777/0.4525, allocations: 347.2 kB / 0.6918 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001848/0.4527, allocations: 39.53 kB / 0.6919 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.4537, allocations: 404.7 kB / 0.6922 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003286/0.454, allocations: 177.5 kB / 0.6924 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006783/0.4547, allocations: 319.9 kB / 0.6927 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001678/0.4564, allocations: 0.8794 MB / 0.6936 GB, free: 12.56 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4564, allocations: 1.188 kB / 0.6936 GB, free: 12.56 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4564, allocations: 0 / 0.6936 GB, free: 12.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.882e-05/0.4565, allocations: 1.062 kB / 0.6936 GB, free: 12.56 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001893/0.4584, allocations: 0.938 MB / 0.6945 GB, free: 11.96 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.4584, allocations: 10.53 kB / 0.6945 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.4598, allocations: 206.3 kB / 0.6947 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008373/0.4606, allocations: 0.5299 MB / 0.6952 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.4607, allocations: 35.22 kB / 0.6952 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-05/0.4608, allocations: 48.23 kB / 0.6953 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.4618, allocations: 0.8452 MB / 0.6961 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.4619, allocations: 12.02 kB / 0.6961 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.301e-05/0.4619, allocations: 24.22 kB / 0.6962 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/0.462, allocations: 66.03 kB / 0.6962 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008022/0.4629, allocations: 0.5605 MB / 0.6968 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003356/0.4662, allocations: 5.647 MB / 0.7023 GB, free: 5.898 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006499/0.4669, allocations: 455.3 kB / 0.7027 GB, free: 5.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002899/0.4672, allocations: 225.4 kB / 0.7029 GB, free: 5.648 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.4672, allocations: 3.156 kB / 0.7029 GB, free: 5.648 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.4672, allocations: 40.81 kB / 0.703 GB, free: 5.602 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.533e-06/0.4673, allocations: 0 / 0.703 GB, free: 5.602 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002267/0.4695, allocations: 1.5 MB / 0.7044 GB, free: 4.676 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.375e-05/0.4696, allocations: 55.84 kB / 0.7045 GB, free: 4.613 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005314/0.4701, allocations: 0.4929 MB / 0.705 GB, free: 4.375 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.4701, allocations: 30.92 kB / 0.705 GB, free: 4.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.4703, allocations: 355.8 kB / 0.7053 GB, free: 4.059 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.723e-05/0.4704, allocations: 116.3 kB / 0.7054 GB, free: 3.973 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.4705, allocations: 115 kB / 0.7056 GB, free: 3.906 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.885e-05/0.4706, allocations: 365.1 kB / 0.7059 GB, free: 3.57 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.4709, allocations: 196.4 kB / 0.7061 GB, free: 3.504 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/0.4713, allocations: 443 kB / 0.7065 GB, free: 3.117 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007038/0.472, allocations: 0.7002 MB / 0.7072 GB, free: 2.582 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.4721, allocations: 6.531 kB / 0.7072 GB, free: 2.578 MB / 494.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001191/0.4732, allocations: 0.7973 MB / 0.708 GB, free: 2.23 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.4733, allocations: 7.906 kB / 0.708 GB, free: 2.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.4733, allocations: 13.81 kB / 0.708 GB, free: 2.227 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004521/0.4738, allocations: 152.1 kB / 0.7081 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004313/0.4742, allocations: 125.5 kB / 0.7083 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002857/0.4771, allocations: 4.352 MB / 0.7125 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003672/0.4774, allocations: 34.19 kB / 0.7126 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.463e-05/0.4775, allocations: 26.56 kB / 0.7126 GB, free: 13.86 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002579/0.4778, allocations: 217.1 kB / 0.7128 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.8e-05/0.4779, allocations: 65.62 kB / 0.7128 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001035/0.4789, allocations: 0.5938 MB / 0.7134 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.4789, allocations: 7.469 kB / 0.7134 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.4789, allocations: 1.75 kB / 0.7134 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.4789, allocations: 2.422 kB / 0.7134 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.4809, allocations: 1.257 MB / 0.7147 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.4809, allocations: 2.938 kB / 0.7147 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.4812, allocations: 54.52 kB / 0.7147 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003789/0.4815, allocations: 142.7 kB / 0.7149 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/0.4816, allocations: 9.344 kB / 0.7149 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002916/0.4845, allocations: 4.334 MB / 0.7191 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.4845, allocations: 8.469 kB / 0.7191 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.4855, allocations: 0.7122 MB / 0.7198 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/0.4858, allocations: 165.2 kB / 0.72 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.339e-05/0.4858, allocations: 12.64 kB / 0.72 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.4861, allocations: 22.17 kB / 0.72 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.362e-05/0.4862, allocations: 39.67 kB / 0.72 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.202e-05/0.4862, allocations: 8.156 kB / 0.72 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003458/0.4866, allocations: 333.7 kB / 0.7204 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4866, allocations: 1.375 kB / 0.7204 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006208/0.4872, allocations: 143.6 kB / 0.7205 GB, free: 7.566 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001326/0.4873, allocations: 118.3 kB / 0.7206 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00134/0.4887, allocations: 1.029 MB / 0.7216 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.4887, allocations: 0 / 0.7216 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007695/0.4895, allocations: 0.7339 MB / 0.7223 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009379/0.4904, allocations: 203.7 kB / 0.7225 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.492, allocations: 1.039 MB / 0.7235 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/0.4925, allocations: 0.9094 MB / 0.7244 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003467/0.4929, allocations: 113.3 kB / 0.7245 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.784e-05/0.493, allocations: 43.89 kB / 0.7246 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.493, allocations: 0 / 0.7246 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of Templates: time 0.01947/0.5125, allocations: 7.604 MB / 0.732 GB, free: 2.305 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)