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.007911/0.007911, allocations: 100.4 kB / 15.73 MB, free: 6.047 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.00184/0.00184, allocations: 197.2 kB / 16.67 MB, free: 5.977 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002117/0.002117, allocations: 294.8 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9542/0.9542, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 95.86 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.154, allocations: 86.98 MB / 0.7664 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005225/0.1593, allocations: 3.742 MB / 0.77 GB, free: 4.684 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002812/0.1621, allocations: 1.785 MB / 0.7718 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002879/0.1624, allocations: 23.88 kB / 0.7718 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008874/0.1633, allocations: 262.7 kB / 0.7721 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0007187/0.164, allocations: 318.4 kB / 0.7724 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005514/0.1646, allocations: 243.4 kB / 0.7726 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007106/0.1653, allocations: 0.6088 MB / 0.7732 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004127/0.1657, allocations: 262.5 kB / 0.7734 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003361/0.1661, allocations: 247.1 kB / 0.7737 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002685/0.1664, allocations: 235 kB / 0.7739 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/0.1664, allocations: 31.94 kB / 0.7739 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004064/0.1668, allocations: 263.5 kB / 0.7742 GB, free: 436 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.167, allocations: 127.6 kB / 0.7743 GB, free: 308 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.1671, allocations: 206.9 kB / 0.7745 GB, free: 100 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.3236/0.4907, allocations: 0.5846 MB / 0.7751 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4908, allocations: 0.7969 kB / 0.7751 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.954e-06/0.4908, allocations: 0.9375 kB / 0.7751 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.4908, allocations: 0 / 0.7751 GB, free: 9.492 MB / 0.5606 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.001178/0.492, allocations: 0.7275 MB / 0.7758 GB, free: 9.004 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.492, allocations: 9.688 kB / 0.7758 GB, free: 9.004 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009314/0.493, allocations: 133.9 kB / 0.7759 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.4935, allocations: 409.4 kB / 0.7763 GB, free: 8.73 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.4935, allocations: 24.42 kB / 0.7763 GB, free: 8.73 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.07e-05/0.4936, allocations: 32.22 kB / 0.7764 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007822/0.4944, allocations: 0.5542 MB / 0.7769 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.4944, allocations: 3.266 kB / 0.7769 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.4944, allocations: 15 kB / 0.7769 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.109e-05/0.4945, allocations: 43.66 kB / 0.777 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006924/0.4952, allocations: 406.6 kB / 0.7773 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.4974, allocations: 3.333 MB / 0.7806 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000616/0.498, allocations: 342.1 kB / 0.7809 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002825/0.4983, allocations: 178.7 kB / 0.7811 GB, free: 5.832 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.4984, allocations: 2.875 kB / 0.7811 GB, free: 5.832 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.369e-05/0.4984, allocations: 37.94 kB / 0.7811 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=26): time 1.453e-06/0.4984, allocations: 0 / 0.7811 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of matching and sorting (n=27): time 0.001772/0.5002, allocations: 1.061 MB / 0.7822 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.375e-05/0.5002, allocations: 54.23 kB / 0.7822 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.5005, allocations: 341.9 kB / 0.7826 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.5005, allocations: 30.48 kB / 0.7826 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.5006, allocations: 240.6 kB / 0.7828 GB, free: 5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.275e-05/0.5007, allocations: 101.2 kB / 0.7829 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.572e-05/0.5008, allocations: 77.16 kB / 0.783 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002381/0.501, allocations: 351.5 kB / 0.7833 GB, free: 20.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.5013, allocations: 149 kB / 0.7835 GB, free: 20.6 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002912/0.5016, allocations: 292.4 kB / 0.7837 GB, free: 20.43 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005631/0.5021, allocations: 489.8 kB / 0.7842 GB, free: 20.25 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.5022, allocations: 5.312 kB / 0.7842 GB, free: 20.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008853/0.503, allocations: 0.5575 MB / 0.7848 GB, free: 20.16 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.5031, allocations: 7.438 kB / 0.7848 GB, free: 20.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.5031, allocations: 4.625 kB / 0.7848 GB, free: 20.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002843/0.5034, allocations: 93.16 kB / 0.7849 GB, free: 20.12 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003175/0.5037, allocations: 87.56 kB / 0.7849 GB, free: 20.12 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.5037, allocations: 12.58 kB / 0.7849 GB, free: 20.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002491/0.504, allocations: 31.47 kB / 0.785 GB, free: 20.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/0.504, allocations: 18.59 kB / 0.785 GB, free: 20.11 MB / 0.5762 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 (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.0001929/0.5042, allocations: 173.2 kB / 0.7852 GB, free: 19.96 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-05/0.5043, allocations: 35.34 kB / 0.7852 GB, free: 19.95 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000825/0.5051, allocations: 467.7 kB / 0.7856 GB, free: 19.75 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.5051, allocations: 2.188 kB / 0.7856 GB, free: 19.75 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.5052, allocations: 4.562 kB / 0.7856 GB, free: 19.75 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.5052, allocations: 1.656 kB / 0.7857 GB, free: 19.75 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/0.5065, allocations: 0.9559 MB / 0.7866 GB, free: 19.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.5065, allocations: 7 kB / 0.7866 GB, free: 19.19 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.5067, allocations: 55.75 kB / 0.7866 GB, free: 19.19 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.5069, allocations: 84.42 kB / 0.7867 GB, free: 19.15 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.5069, allocations: 6.906 kB / 0.7867 GB, free: 19.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.5069, allocations: 2.938 kB / 0.7867 GB, free: 19.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5069, allocations: 0 / 0.7867 GB, free: 19.14 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007046/0.5076, allocations: 0.5426 MB / 0.7873 GB, free: 18.83 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.5078, allocations: 136.3 kB / 0.7874 GB, free: 18.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.172e-05/0.5079, allocations: 11.03 kB / 0.7874 GB, free: 18.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.5081, allocations: 21.97 kB / 0.7874 GB, free: 18.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/0.5082, allocations: 29.67 kB / 0.7875 GB, free: 18.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.5082, allocations: 9.281 kB / 0.7875 GB, free: 18.69 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000204/0.5084, allocations: 235.5 kB / 0.7877 GB, free: 18.57 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.272e-06/0.5084, allocations: 0 / 0.7877 GB, free: 18.57 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003801/0.5088, allocations: 92.38 kB / 0.7878 GB, free: 18.55 MB / 0.5762 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 (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.0001165/0.5089, allocations: 108.6 kB / 0.7879 GB, free: 18.46 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008094/0.5097, allocations: 0.6274 MB / 0.7885 GB, free: 18.05 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5097, allocations: 0 / 0.7885 GB, free: 18.05 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004269/0.5102, allocations: 435 kB / 0.7889 GB, free: 17.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000674/0.5109, allocations: 133.2 kB / 0.789 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009157/0.5118, allocations: 0.7216 MB / 0.7897 GB, free: 17.26 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.5122, allocations: 0.8272 MB / 0.7905 GB, free: 16.55 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002026/0.5124, allocations: 76.77 kB / 0.7906 GB, free: 16.54 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.375e-05/0.5125, allocations: 28.75 kB / 0.7906 GB, free: 16.53 MB / 0.5762 GB Notification: Performance of SimCode: time 2.1e-07/0.5125, allocations: 0 / 0.7906 GB, free: 16.53 MB / 0.5762 GB Notification: Performance of Templates: time 0.009977/0.5225, allocations: 4.748 MB / 0.7953 GB, free: 16.27 MB / 0.5762 GB 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)