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.001579/0.00158, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001867/0.001867, allocations: 195.6 kB / 16.25 MB, free: 6.621 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.299/1.299, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002009/0.002009, allocations: 290.4 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9457/0.9457, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 90.36 kB / 0.5947 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1445, allocations: 86.99 MB / 0.6796 GB, free: 1.055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004725/0.1492, allocations: 3.77 MB / 0.6833 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.1517, allocations: 1.772 MB / 0.685 GB, free: 11.51 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.1519, allocations: 15.88 kB / 0.6851 GB, free: 11.49 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007571/0.1527, allocations: 254.2 kB / 0.6853 GB, free: 11.25 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005098/0.1532, allocations: 274.8 kB / 0.6856 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000447/0.1537, allocations: 227.6 kB / 0.6858 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005675/0.1543, allocations: 0.6087 MB / 0.6864 GB, free: 10.14 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004386/0.1547, allocations: 282.8 kB / 0.6866 GB, free: 9.867 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002816/0.155, allocations: 243 kB / 0.6869 GB, free: 9.629 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.1553, allocations: 235 kB / 0.6871 GB, free: 9.398 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.203e-05/0.1553, allocations: 28 kB / 0.6871 GB, free: 9.371 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003574/0.1557, allocations: 271.4 kB / 0.6874 GB, free: 9.105 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.1558, allocations: 123.6 kB / 0.6875 GB, free: 8.984 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.156, allocations: 210.8 kB / 0.6877 GB, free: 8.777 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005651/0.1566, allocations: 0.6073 MB / 0.6883 GB, free: 8.168 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1566, allocations: 4 kB / 0.6883 GB, free: 8.164 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1566, allocations: 0 / 0.6883 GB, free: 8.164 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1566, allocations: 0 / 0.6883 GB, free: 8.164 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.0009841/0.1576, allocations: 0.7323 MB / 0.689 GB, free: 7.383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.824e-05/0.1576, allocations: 12.03 kB / 0.689 GB, free: 7.371 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000863/0.1585, allocations: 128.2 kB / 0.6892 GB, free: 7.246 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.1589, allocations: 375.7 kB / 0.6895 GB, free: 6.84 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.159, allocations: 25.02 kB / 0.6895 GB, free: 6.816 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.929e-05/0.159, allocations: 28.38 kB / 0.6896 GB, free: 6.789 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007603/0.1598, allocations: 0.5549 MB / 0.6901 GB, free: 6.164 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.1598, allocations: 4 kB / 0.6901 GB, free: 6.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.613e-05/0.1598, allocations: 12 kB / 0.6901 GB, free: 6.148 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.593e-05/0.1599, allocations: 40.53 kB / 0.6902 GB, free: 6.109 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006642/0.1606, allocations: 413.7 kB / 0.6906 GB, free: 5.707 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002497/0.1631, allocations: 3.337 MB / 0.6938 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006174/0.1637, allocations: 343 kB / 0.6941 GB, free: 1.773 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.164, allocations: 180.8 kB / 0.6943 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.164, allocations: 4 kB / 0.6943 GB, free: 1.59 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.1641, allocations: 34.5 kB / 0.6943 GB, free: 1.547 MB / 494.1 MB Notification: Performance of pre-optimization done (n=26): time 1.482e-06/0.1641, allocations: 0 / 0.6943 GB, free: 1.547 MB / 494.1 MB Notification: Performance of matching and sorting (n=27): time 0.001912/0.166, allocations: 1.059 MB / 0.6954 GB, free: 428 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.287e-05/0.166, allocations: 55.64 kB / 0.6954 GB, free: 360 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002815/0.1663, allocations: 333.6 kB / 0.6958 GB, free: 16 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.1664, allocations: 41.64 kB / 0.6958 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.1665, allocations: 247.5 kB / 0.696 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/0.1666, allocations: 90.66 kB / 0.6961 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.1667, allocations: 82.03 kB / 0.6962 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1668, allocations: 346.8 kB / 0.6965 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.1671, allocations: 148.7 kB / 0.6967 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003284/0.1674, allocations: 293.7 kB / 0.6969 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000627/0.1681, allocations: 487.2 kB / 0.6974 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.1681, allocations: 4 kB / 0.6974 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009416/0.169, allocations: 0.562 MB / 0.698 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.1691, allocations: 8 kB / 0.698 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.1691, allocations: 4 kB / 0.698 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002955/0.1694, allocations: 94.44 kB / 0.6981 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.1697, allocations: 83.88 kB / 0.6981 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.1697, allocations: 11.94 kB / 0.6982 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.17, allocations: 39.97 kB / 0.6982 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.1701, allocations: 16 kB / 0.6982 GB, free: 13.33 MB / 0.4981 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.000165/0.1702, allocations: 170.4 kB / 0.6984 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.1703, allocations: 43.52 kB / 0.6984 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008351/0.1711, allocations: 464 kB / 0.6989 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1712, allocations: 4 kB / 0.6989 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1712, allocations: 0 / 0.6989 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1712, allocations: 4 kB / 0.6989 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.1725, allocations: 0.9636 MB / 0.6998 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.1725, allocations: 4 kB / 0.6998 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002319/0.1727, allocations: 51.95 kB / 0.6999 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002297/0.173, allocations: 78.45 kB / 0.6999 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.173, allocations: 8 kB / 0.6999 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.173, allocations: 4 kB / 0.6999 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.173, allocations: 4.094 kB / 0.6999 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007937/0.1738, allocations: 0.5433 MB / 0.7005 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.174, allocations: 140.6 kB / 0.7006 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.32e-05/0.174, allocations: 11.98 kB / 0.7006 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.1743, allocations: 27.91 kB / 0.7007 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.874e-05/0.1743, allocations: 27.84 kB / 0.7007 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.1744, allocations: 8 kB / 0.7007 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002121/0.1746, allocations: 231.2 kB / 0.7009 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.345e-06/0.1746, allocations: 0 / 0.7009 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003954/0.175, allocations: 91.94 kB / 0.701 GB, free: 10.32 MB / 0.4981 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.0001203/0.1751, allocations: 107.2 kB / 0.7011 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008985/0.176, allocations: 0.6665 MB / 0.7017 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.176, allocations: 3.938 kB / 0.7018 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004775/0.1765, allocations: 441.2 kB / 0.7022 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.1772, allocations: 128.8 kB / 0.7023 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.1784, allocations: 0.8676 MB / 0.7031 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.1787, allocations: 0.8312 MB / 0.704 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002486/0.179, allocations: 79.3 kB / 0.704 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.091e-05/0.179, allocations: 27.44 kB / 0.7041 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1791, allocations: 0 / 0.7041 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of Templates: time 0.00876/0.1878, allocations: 4.677 MB / 0.7086 GB, free: 2.367 MB / 0.4981 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)