Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 112.6 kB / 16.37 MB, free: 6 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.001259/0.001259, allocations: 196 kB / 17.31 MB, free: 5.613 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.304/1.304, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001996/0.001996, allocations: 287 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8963/0.8963, allocations: 169.3 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 93.97 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.1662, allocations: 86.96 MB / 0.6816 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.00486/0.1711, allocations: 3.742 MB / 0.6853 GB, free: 3.676 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0026/0.1737, allocations: 1.8 MB / 0.687 GB, free: 1.867 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.1739, allocations: 15.88 kB / 0.687 GB, free: 1.852 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007909/0.1747, allocations: 266.6 kB / 0.6873 GB, free: 1.59 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005376/0.1752, allocations: 290.5 kB / 0.6876 GB, free: 1.305 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005098/0.1758, allocations: 258.5 kB / 0.6878 GB, free: 1.055 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005352/0.1763, allocations: 0.6049 MB / 0.6884 GB, free: 460 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003902/0.1767, allocations: 258.4 kB / 0.6886 GB, free: 200 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2934/0.4701, allocations: 228.6 kB / 0.6889 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005629/0.4707, allocations: 232.8 kB / 0.6891 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.4709, allocations: 26.09 kB / 0.6891 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006614/0.4716, allocations: 274.2 kB / 0.6894 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.4717, allocations: 118.6 kB / 0.6895 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002527/0.472, allocations: 213 kB / 0.6897 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008223/0.4728, allocations: 0.5889 MB / 0.6903 GB, free: 13.03 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.4728, allocations: 1.75 kB / 0.6903 GB, free: 13.03 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4728, allocations: 1.531 kB / 0.6903 GB, free: 13.03 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.4729, allocations: 0 / 0.6903 GB, free: 13.03 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001087/0.474, allocations: 0.7292 MB / 0.691 GB, free: 12.52 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.474, allocations: 11.94 kB / 0.691 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008764/0.4749, allocations: 138.6 kB / 0.6911 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005487/0.4754, allocations: 409.8 kB / 0.6915 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.4755, allocations: 23.47 kB / 0.6915 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.91e-05/0.4755, allocations: 30.16 kB / 0.6916 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000735/0.4763, allocations: 0.5547 MB / 0.6921 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.4763, allocations: 2.562 kB / 0.6921 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.14e-05/0.4764, allocations: 17.36 kB / 0.6921 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.168e-05/0.4764, allocations: 45.84 kB / 0.6922 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006999/0.4771, allocations: 408.3 kB / 0.6926 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.4794, allocations: 3.325 MB / 0.6958 GB, free: 9.387 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006411/0.48, allocations: 341.9 kB / 0.6961 GB, free: 9.352 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002922/0.4803, allocations: 177.7 kB / 0.6963 GB, free: 9.344 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.4804, allocations: 3.344 kB / 0.6963 GB, free: 9.344 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.484e-05/0.4804, allocations: 41.5 kB / 0.6963 GB, free: 9.305 MB / 494.1 MB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.4804, allocations: 0 / 0.6963 GB, free: 9.305 MB / 494.1 MB Notification: Performance of matching and sorting (n=27): time 0.001821/0.4822, allocations: 1.055 MB / 0.6974 GB, free: 8.879 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.207e-05/0.4822, allocations: 54.48 kB / 0.6974 GB, free: 8.816 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003094/0.4826, allocations: 345.7 kB / 0.6978 GB, free: 8.695 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.4826, allocations: 32.11 kB / 0.6978 GB, free: 8.664 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.4827, allocations: 241.9 kB / 0.698 GB, free: 8.516 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.986e-05/0.4828, allocations: 102.6 kB / 0.6981 GB, free: 8.453 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.4829, allocations: 79.64 kB / 0.6982 GB, free: 8.434 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.472e-05/0.4829, allocations: 343.9 kB / 0.6985 GB, free: 8.121 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.4832, allocations: 149.6 kB / 0.6987 GB, free: 8.086 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003011/0.4835, allocations: 293 kB / 0.6989 GB, free: 7.855 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00056/0.4841, allocations: 479 kB / 0.6994 GB, free: 7.559 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4841, allocations: 0 / 0.6994 GB, free: 7.559 MB / 494.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009195/0.485, allocations: 0.5684 MB / 0.7 GB, free: 7.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.4851, allocations: 10.72 kB / 0.7 GB, free: 7.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.4851, allocations: 4.188 kB / 0.7 GB, free: 7.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002949/0.4854, allocations: 87.83 kB / 0.7001 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.4857, allocations: 92.58 kB / 0.7001 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.4857, allocations: 7.703 kB / 0.7001 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.486, allocations: 38.14 kB / 0.7002 GB, free: 7.285 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.205e-05/0.486, allocations: 20.72 kB / 0.7002 GB, free: 7.281 MB / 494.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.0001605/0.4862, allocations: 172.2 kB / 0.7004 GB, free: 7.145 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.911e-05/0.4863, allocations: 39.38 kB / 0.7004 GB, free: 7.125 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009014/0.4872, allocations: 472.8 kB / 0.7009 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.4872, allocations: 1.969 kB / 0.7009 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.4872, allocations: 4.719 kB / 0.7009 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.4872, allocations: 2.062 kB / 0.7009 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0015/0.4887, allocations: 0.9583 MB / 0.7018 GB, free: 6.371 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.4888, allocations: 5.719 kB / 0.7018 GB, free: 6.367 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.489, allocations: 52.7 kB / 0.7019 GB, free: 6.363 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002268/0.4892, allocations: 83.25 kB / 0.7019 GB, free: 6.324 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.4893, allocations: 6.375 kB / 0.7019 GB, free: 6.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.4893, allocations: 1.219 kB / 0.7019 GB, free: 6.32 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4893, allocations: 9.609 kB / 0.702 GB, free: 6.316 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007267/0.49, allocations: 0.5391 MB / 0.7025 GB, free: 6.008 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.4902, allocations: 139.4 kB / 0.7026 GB, free: 5.883 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.836e-05/0.4902, allocations: 7.594 kB / 0.7026 GB, free: 5.879 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.4904, allocations: 21.86 kB / 0.7026 GB, free: 5.875 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.267e-05/0.4905, allocations: 29.55 kB / 0.7027 GB, free: 5.867 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.4905, allocations: 9.594 kB / 0.7027 GB, free: 5.863 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002121/0.4907, allocations: 235.4 kB / 0.7029 GB, free: 5.738 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4907, allocations: 0 / 0.7029 GB, free: 5.738 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003933/0.4911, allocations: 85.77 kB / 0.703 GB, free: 5.73 MB / 494.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.000104/0.4913, allocations: 108.3 kB / 0.7031 GB, free: 5.633 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007601/0.492, allocations: 0.6318 MB / 0.7037 GB, free: 5.223 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.492, allocations: 0 / 0.7037 GB, free: 5.223 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00037/0.4924, allocations: 434.6 kB / 0.7041 GB, free: 4.867 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006589/0.4931, allocations: 130.4 kB / 0.7042 GB, free: 4.828 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.4942, allocations: 0.7231 MB / 0.705 GB, free: 4.422 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.4946, allocations: 0.8233 MB / 0.7058 GB, free: 3.711 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002424/0.4948, allocations: 84.78 kB / 0.7058 GB, free: 3.695 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.975e-05/0.4949, allocations: 28.91 kB / 0.7059 GB, free: 3.688 MB / 494.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4949, allocations: 0.75 kB / 0.7059 GB, free: 3.688 MB / 494.1 MB Notification: Performance of Templates: time 0.01075/0.5057, allocations: 4.671 MB / 0.7104 GB, free: 3.441 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)