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.006497/0.006497, allocations: 96.42 kB / 15.73 MB, free: 5.988 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.0014/0.0014, allocations: 187.6 kB / 16.67 MB, free: 5.918 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002135/0.002135, allocations: 286.9 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9766/0.9766, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 99.8 kB / 0.6815 GB, free: 15.49 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1776, allocations: 86.97 MB / 0.7664 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005897/0.1836, allocations: 3.738 MB / 0.77 GB, free: 4.684 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003301/0.1869, allocations: 1.789 MB / 0.7718 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004741/0.1874, allocations: 15.94 kB / 0.7718 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.1887, allocations: 266.6 kB / 0.7721 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009198/0.1897, allocations: 302.5 kB / 0.7723 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006914/0.1904, allocations: 257.2 kB / 0.7726 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008024/0.1912, allocations: 0.5971 MB / 0.7732 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004764/0.1917, allocations: 270.5 kB / 0.7734 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004735/0.1922, allocations: 231.1 kB / 0.7736 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000412/0.1926, allocations: 234.9 kB / 0.7739 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.478e-05/0.1927, allocations: 28 kB / 0.7739 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005422/0.1932, allocations: 275.4 kB / 0.7742 GB, free: 452 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.1934, allocations: 115.6 kB / 0.7743 GB, free: 336 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002383/0.1936, allocations: 214.9 kB / 0.7745 GB, free: 120 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.3382/0.5319, allocations: 0.5895 MB / 0.7751 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.5319, allocations: 0 / 0.7751 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.423e-06/0.5319, allocations: 0.8125 kB / 0.7751 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.609e-05/0.532, allocations: 0 / 0.7751 GB, free: 10.05 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.001591/0.5336, allocations: 0.7429 MB / 0.7758 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.5336, allocations: 10.75 kB / 0.7758 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009857/0.5346, allocations: 134.5 kB / 0.7759 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005462/0.5352, allocations: 417.8 kB / 0.7763 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.5352, allocations: 20.41 kB / 0.7763 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.188e-05/0.5353, allocations: 37.38 kB / 0.7764 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000827/0.5361, allocations: 0.5486 MB / 0.7769 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.5361, allocations: 4.906 kB / 0.7769 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.5362, allocations: 14.78 kB / 0.7769 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.687e-05/0.5362, allocations: 42.36 kB / 0.777 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007115/0.537, allocations: 414.2 kB / 0.7774 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.5393, allocations: 3.329 MB / 0.7806 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006495/0.5399, allocations: 342.2 kB / 0.7809 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002873/0.5402, allocations: 177 kB / 0.7811 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.5403, allocations: 2.953 kB / 0.7811 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.5403, allocations: 35.34 kB / 0.7811 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=26): time 1.714e-06/0.5403, allocations: 0 / 0.7811 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of matching and sorting (n=27): time 0.00182/0.5421, allocations: 1.073 MB / 0.7822 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.236e-05/0.5422, allocations: 61.69 kB / 0.7822 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002812/0.5424, allocations: 341.7 kB / 0.7826 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.5425, allocations: 30.05 kB / 0.7826 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.5426, allocations: 248.3 kB / 0.7828 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.479e-05/0.5426, allocations: 101.6 kB / 0.7829 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.5427, allocations: 76.27 kB / 0.783 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.417e-05/0.5428, allocations: 347.8 kB / 0.7833 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/0.5431, allocations: 151.9 kB / 0.7835 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003064/0.5435, allocations: 294.4 kB / 0.7838 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005777/0.544, allocations: 483.1 kB / 0.7842 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.5441, allocations: 4.844 kB / 0.7842 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008827/0.5449, allocations: 0.5626 MB / 0.7848 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.545, allocations: 7.031 kB / 0.7848 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.545, allocations: 4.781 kB / 0.7848 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/0.5453, allocations: 89.81 kB / 0.7849 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.5456, allocations: 87.7 kB / 0.785 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.5456, allocations: 13.23 kB / 0.785 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.5459, allocations: 32.2 kB / 0.785 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.937e-05/0.546, allocations: 19.34 kB / 0.785 GB, free: 4.285 MB / 0.5606 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.0001501/0.5461, allocations: 174.2 kB / 0.7852 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.208e-05/0.5462, allocations: 42.91 kB / 0.7852 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007962/0.547, allocations: 466.5 kB / 0.7857 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.547, allocations: 2.688 kB / 0.7857 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.547, allocations: 1.406 kB / 0.7857 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.547, allocations: 4.953 kB / 0.7857 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.5483, allocations: 0.9586 MB / 0.7866 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5483, allocations: 6.188 kB / 0.7866 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002149/0.5485, allocations: 51.78 kB / 0.7867 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002015/0.5487, allocations: 86.17 kB / 0.7868 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.5488, allocations: 4 kB / 0.7868 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.5488, allocations: 5.75 kB / 0.7868 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5488, allocations: 2.531 kB / 0.7868 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007029/0.5495, allocations: 0.5435 MB / 0.7873 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002404/0.5497, allocations: 140.1 kB / 0.7874 GB, free: 18.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.376e-05/0.5498, allocations: 7.047 kB / 0.7874 GB, free: 18.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.55, allocations: 22.34 kB / 0.7875 GB, free: 18.88 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.84e-05/0.5501, allocations: 26.53 kB / 0.7875 GB, free: 18.87 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.5501, allocations: 9.438 kB / 0.7875 GB, free: 18.87 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002141/0.5503, allocations: 237.1 kB / 0.7877 GB, free: 18.74 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.4e-07/0.5504, allocations: 1.312 kB / 0.7877 GB, free: 18.74 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003906/0.5507, allocations: 85.61 kB / 0.7878 GB, free: 18.73 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.0001107/0.5509, allocations: 107.5 kB / 0.7879 GB, free: 18.64 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007981/0.5517, allocations: 0.6305 MB / 0.7885 GB, free: 18.23 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5517, allocations: 2.469 kB / 0.7885 GB, free: 18.23 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004375/0.5521, allocations: 432 kB / 0.7889 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006844/0.5528, allocations: 130.3 kB / 0.7891 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009637/0.5538, allocations: 0.7307 MB / 0.7898 GB, free: 17.43 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.5542, allocations: 0.8226 MB / 0.7906 GB, free: 16.71 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002551/0.5545, allocations: 84.31 kB / 0.7907 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.778e-05/0.5545, allocations: 27.73 kB / 0.7907 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/0.5545, allocations: 1.406 kB / 0.7907 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.009644/0.5642, allocations: 4.741 MB / 0.7953 GB, free: 16.43 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)