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.001105/0.001105, allocations: 106.6 kB / 16.41 MB, free: 6.453 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.001209/0.001209, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002364/0.002364, allocations: 290.7 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9748/0.9748, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 100.3 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5057/0.5078, allocations: 86.97 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005652/0.5135, allocations: 3.742 MB / 0.7707 GB, free: 160 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003241/0.5168, allocations: 1.785 MB / 0.7724 GB, free: 14.36 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003844/0.5172, allocations: 15.88 kB / 0.7725 GB, free: 14.35 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009763/0.5182, allocations: 274.7 kB / 0.7727 GB, free: 14.08 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0008302/0.5191, allocations: 310.4 kB / 0.773 GB, free: 13.77 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006252/0.5197, allocations: 250.2 kB / 0.7733 GB, free: 13.53 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008312/0.5205, allocations: 0.6088 MB / 0.7738 GB, free: 12.92 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005176/0.5211, allocations: 254.2 kB / 0.7741 GB, free: 12.67 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004269/0.5215, allocations: 235.1 kB / 0.7743 GB, free: 12.44 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003702/0.5219, allocations: 239 kB / 0.7745 GB, free: 12.21 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.737e-05/0.5219, allocations: 24 kB / 0.7746 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004942/0.5225, allocations: 275.4 kB / 0.7748 GB, free: 11.91 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.5226, allocations: 123.6 kB / 0.7749 GB, free: 11.79 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.5229, allocations: 218.8 kB / 0.7752 GB, free: 11.58 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0007511/0.5236, allocations: 0.5942 MB / 0.7757 GB, free: 10.98 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.5236, allocations: 0 / 0.7757 GB, free: 10.98 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.064e-06/0.5237, allocations: 0 / 0.7757 GB, free: 10.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.052e-05/0.5237, allocations: 4 kB / 0.7757 GB, free: 10.98 MB / 0.545 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.001292/0.525, allocations: 0.7245 MB / 0.7764 GB, free: 10.21 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.525, allocations: 12.03 kB / 0.7765 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.526, allocations: 132.2 kB / 0.7766 GB, free: 10.07 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005966/0.5266, allocations: 407.6 kB / 0.777 GB, free: 9.633 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.5267, allocations: 25.02 kB / 0.777 GB, free: 9.605 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-05/0.5268, allocations: 32.38 kB / 0.777 GB, free: 9.574 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008624/0.5276, allocations: 0.5511 MB / 0.7776 GB, free: 8.957 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.5277, allocations: 3.938 kB / 0.7776 GB, free: 8.953 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.223e-05/0.5277, allocations: 19.98 kB / 0.7776 GB, free: 8.934 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.706e-05/0.5278, allocations: 44.53 kB / 0.7776 GB, free: 8.887 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007854/0.5286, allocations: 405.7 kB / 0.778 GB, free: 8.492 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003154/0.5317, allocations: 3.326 MB / 0.7813 GB, free: 4.914 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006656/0.5324, allocations: 340.8 kB / 0.7816 GB, free: 4.574 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.5327, allocations: 172.8 kB / 0.7818 GB, free: 4.402 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.5328, allocations: 7.984 kB / 0.7818 GB, free: 4.395 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.5328, allocations: 42.56 kB / 0.7818 GB, free: 4.344 MB / 0.545 GB Notification: Performance of pre-optimization done (n=26): time 1.863e-06/0.5328, allocations: 0 / 0.7818 GB, free: 4.344 MB / 0.545 GB Notification: Performance of matching and sorting (n=27): time 0.002129/0.5349, allocations: 1.066 MB / 0.7828 GB, free: 3.207 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/0.535, allocations: 55.64 kB / 0.7829 GB, free: 3.141 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003397/0.5353, allocations: 341.5 kB / 0.7832 GB, free: 2.797 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.5354, allocations: 29.7 kB / 0.7833 GB, free: 2.762 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.5355, allocations: 255.5 kB / 0.7835 GB, free: 2.508 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.965e-05/0.5356, allocations: 90.66 kB / 0.7836 GB, free: 2.418 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.5357, allocations: 78.05 kB / 0.7837 GB, free: 2.336 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.5359, allocations: 346.8 kB / 0.784 GB, free: 1.988 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002744/0.5362, allocations: 144.8 kB / 0.7841 GB, free: 1.848 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004108/0.5366, allocations: 294.5 kB / 0.7844 GB, free: 1.496 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006996/0.5373, allocations: 484.1 kB / 0.7849 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.5373, allocations: 4 kB / 0.7849 GB, free: 0.957 MB / 0.545 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009951/0.5383, allocations: 0.5577 MB / 0.7854 GB, free: 392 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.5384, allocations: 10.66 kB / 0.7854 GB, free: 384 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.5384, allocations: 4 kB / 0.7854 GB, free: 380 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003061/0.5387, allocations: 87.11 kB / 0.7855 GB, free: 284 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003747/0.5391, allocations: 95.75 kB / 0.7856 GB, free: 188 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.5391, allocations: 8 kB / 0.7856 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.5394, allocations: 27.91 kB / 0.7856 GB, free: 152 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.5394, allocations: 20 kB / 0.7857 GB, free: 132 kB / 0.545 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.000214/0.5396, allocations: 181.6 kB / 0.7858 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.025e-05/0.5397, allocations: 39.53 kB / 0.7859 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009077/0.5406, allocations: 462.3 kB / 0.7863 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.5406, allocations: 4 kB / 0.7863 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.5407, allocations: 0 / 0.7863 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.433e-06/0.5407, allocations: 3.984 kB / 0.7863 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001466/0.5421, allocations: 0.9676 MB / 0.7873 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.5422, allocations: 0 / 0.7873 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002452/0.5424, allocations: 47.91 kB / 0.7873 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002356/0.5427, allocations: 90.59 kB / 0.7874 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.5427, allocations: 0 / 0.7874 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.5427, allocations: 4 kB / 0.7874 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.5427, allocations: 3.938 kB / 0.7874 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008223/0.5435, allocations: 0.5474 MB / 0.7879 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.5437, allocations: 132.6 kB / 0.7881 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.572e-05/0.5437, allocations: 8 kB / 0.7881 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.544, allocations: 19.97 kB / 0.7881 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.701e-05/0.5441, allocations: 31.91 kB / 0.7881 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.5441, allocations: 4 kB / 0.7881 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002421/0.5443, allocations: 239.2 kB / 0.7884 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5443, allocations: 3.938 kB / 0.7884 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004073/0.5447, allocations: 87.98 kB / 0.7884 GB, free: 13.12 MB / 0.5606 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.0001223/0.5449, allocations: 107.2 kB / 0.7885 GB, free: 13 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009149/0.5458, allocations: 0.6351 MB / 0.7892 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.5458, allocations: 1.25 kB / 0.7892 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004523/0.5463, allocations: 441.1 kB / 0.7896 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006997/0.547, allocations: 137.7 kB / 0.7897 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.5482, allocations: 0.7636 MB / 0.7905 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.5486, allocations: 0.8234 MB / 0.7913 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.5487, allocations: 31.44 kB / 0.7913 GB, free: 9.996 MB / 0.5606 GB Notification: Performance of SimCode: time 3.1e-07/0.5487, allocations: 0 / 0.7913 GB, free: 9.996 MB / 0.5606 GB Notification: Performance of Templates: time 0.01203/0.5608, allocations: 9.46 MB / 0.8005 GB, free: 0.5586 MB / 0.5606 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)