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.004515/0.004515, allocations: 102 kB / 15.73 MB, free: 6.043 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.00103/0.00103, allocations: 195 kB / 16.67 MB, free: 5.965 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002427/0.002427, allocations: 278.7 kB / 290.8 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.9097/0.9097, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 95.86 kB / 0.6814 GB, free: 6.953 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.399, allocations: 86.99 MB / 0.7664 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004806/0.4038, allocations: 3.727 MB / 0.77 GB, free: 140 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002763/0.4066, allocations: 1.804 MB / 0.7718 GB, free: 14.32 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.4068, allocations: 15.88 kB / 0.7718 GB, free: 14.31 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008166/0.4076, allocations: 266.6 kB / 0.7721 GB, free: 14.05 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005772/0.4082, allocations: 306.5 kB / 0.7723 GB, free: 13.75 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005189/0.4087, allocations: 253.3 kB / 0.7726 GB, free: 13.5 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005803/0.4093, allocations: 0.6088 MB / 0.7732 GB, free: 12.89 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004532/0.4098, allocations: 254.2 kB / 0.7734 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003147/0.4101, allocations: 243.1 kB / 0.7737 GB, free: 12.4 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002889/0.4104, allocations: 235 kB / 0.7739 GB, free: 12.17 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.412e-05/0.4105, allocations: 28 kB / 0.7739 GB, free: 12.14 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004018/0.4109, allocations: 275.4 kB / 0.7742 GB, free: 11.88 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.411, allocations: 127.6 kB / 0.7743 GB, free: 11.75 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001995/0.4112, allocations: 210.8 kB / 0.7745 GB, free: 11.54 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006238/0.4119, allocations: 0.5904 MB / 0.7751 GB, free: 10.95 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4119, allocations: 0 / 0.7751 GB, free: 10.95 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.472e-06/0.4119, allocations: 0 / 0.7751 GB, free: 10.95 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.975e-06/0.4119, allocations: 0 / 0.7751 GB, free: 10.95 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.001095/0.413, allocations: 0.7323 MB / 0.7758 GB, free: 10.17 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.413, allocations: 8.031 kB / 0.7758 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008269/0.4139, allocations: 132.2 kB / 0.7759 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005104/0.4144, allocations: 407.5 kB / 0.7763 GB, free: 9.602 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.4144, allocations: 29 kB / 0.7763 GB, free: 9.57 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.44e-05/0.4145, allocations: 28.38 kB / 0.7764 GB, free: 9.543 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007514/0.4152, allocations: 0.5516 MB / 0.7769 GB, free: 8.926 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.4153, allocations: 7.938 kB / 0.7769 GB, free: 8.918 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.907e-05/0.4153, allocations: 15.94 kB / 0.7769 GB, free: 8.902 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.018e-05/0.4154, allocations: 40.53 kB / 0.777 GB, free: 8.859 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000679/0.4161, allocations: 405.8 kB / 0.7774 GB, free: 8.465 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.4187, allocations: 3.33 MB / 0.7806 GB, free: 4.883 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006347/0.4193, allocations: 344.8 kB / 0.7809 GB, free: 4.539 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/0.4196, allocations: 176.8 kB / 0.7811 GB, free: 4.363 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.4196, allocations: 4 kB / 0.7811 GB, free: 4.359 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.4197, allocations: 34.56 kB / 0.7811 GB, free: 4.316 MB / 0.545 GB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.4197, allocations: 0 / 0.7811 GB, free: 4.316 MB / 0.545 GB Notification: Performance of matching and sorting (n=27): time 0.00192/0.4216, allocations: 1.07 MB / 0.7822 GB, free: 3.176 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.4217, allocations: 51.64 kB / 0.7822 GB, free: 3.113 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.422, allocations: 341.5 kB / 0.7826 GB, free: 2.77 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.422, allocations: 33.7 kB / 0.7826 GB, free: 2.73 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.4222, allocations: 251.5 kB / 0.7828 GB, free: 2.48 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.387e-05/0.4222, allocations: 94.59 kB / 0.7829 GB, free: 2.387 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.4224, allocations: 78.03 kB / 0.783 GB, free: 2.305 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.4225, allocations: 346.8 kB / 0.7833 GB, free: 1.957 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.4228, allocations: 148.8 kB / 0.7835 GB, free: 1.812 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000336/0.4231, allocations: 286.5 kB / 0.7837 GB, free: 1.469 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006144/0.4237, allocations: 488.1 kB / 0.7842 GB, free: 0.9297 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4237, allocations: 0 / 0.7842 GB, free: 0.9297 MB / 0.545 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009166/0.4247, allocations: 0.5621 MB / 0.7848 GB, free: 360 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.4247, allocations: 8 kB / 0.7848 GB, free: 352 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.4247, allocations: 4 kB / 0.7848 GB, free: 348 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002911/0.425, allocations: 90.5 kB / 0.7849 GB, free: 248 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.4253, allocations: 83.83 kB / 0.7849 GB, free: 164 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.4253, allocations: 7.984 kB / 0.7849 GB, free: 156 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.4256, allocations: 39.97 kB / 0.785 GB, free: 116 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.898e-05/0.4256, allocations: 20 kB / 0.785 GB, free: 96 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.0001794/0.4258, allocations: 170.5 kB / 0.7852 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.336e-05/0.4259, allocations: 39.53 kB / 0.7852 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008374/0.4267, allocations: 474.3 kB / 0.7856 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.4268, allocations: 0 / 0.7856 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4268, allocations: 4 kB / 0.7857 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.4268, allocations: 0 / 0.7857 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.4281, allocations: 0.9636 MB / 0.7866 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4281, allocations: 0 / 0.7866 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.4284, allocations: 55.89 kB / 0.7866 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/0.4286, allocations: 78.45 kB / 0.7867 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.4286, allocations: 12 kB / 0.7867 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.4286, allocations: 0 / 0.7867 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4286, allocations: 4 kB / 0.7867 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007959/0.4294, allocations: 0.5435 MB / 0.7873 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.4296, allocations: 144.6 kB / 0.7874 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/0.4296, allocations: 7.984 kB / 0.7874 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.4299, allocations: 19.98 kB / 0.7874 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.595e-05/0.4299, allocations: 27.89 kB / 0.7875 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.43, allocations: 8 kB / 0.7875 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002074/0.4302, allocations: 231.2 kB / 0.7877 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.362e-06/0.4302, allocations: 0 / 0.7877 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003918/0.4306, allocations: 91.94 kB / 0.7878 GB, free: 13.09 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.0001214/0.4307, allocations: 107.2 kB / 0.7879 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008482/0.4316, allocations: 0.6401 MB / 0.7885 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4316, allocations: 0 / 0.7885 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004335/0.432, allocations: 436.9 kB / 0.7889 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006568/0.4327, allocations: 136.2 kB / 0.789 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.4337, allocations: 0.719 MB / 0.7898 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.4341, allocations: 0.8272 MB / 0.7906 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002103/0.4343, allocations: 83.34 kB / 0.7906 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.472e-05/0.4344, allocations: 27.44 kB / 0.7907 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.4344, allocations: 0 / 0.7907 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of Templates: time 0.008447/0.4428, allocations: 4.74 MB / 0.7953 GB, free: 5.262 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)