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.001373/0.001373, allocations: 110 kB / 16.37 MB, free: 5.539 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.001286/0.001286, allocations: 193.6 kB / 17.31 MB, free: 5.18 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.284/1.284, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002107/0.002107, allocations: 284 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9299/0.9299, allocations: 169.2 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 98.31 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1433, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004717/0.1481, allocations: 3.73 MB / 0.6853 GB, free: 3.699 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002446/0.1506, allocations: 1.797 MB / 0.687 GB, free: 1.895 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.1507, allocations: 11.94 kB / 0.687 GB, free: 1.883 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000753/0.1515, allocations: 266.5 kB / 0.6873 GB, free: 1.621 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004961/0.152, allocations: 302.4 kB / 0.6876 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000451/0.1525, allocations: 247.5 kB / 0.6878 GB, free: 1.082 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005405/0.153, allocations: 0.6049 MB / 0.6884 GB, free: 488 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004268/0.1534, allocations: 262.5 kB / 0.6886 GB, free: 224 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2311/0.3845, allocations: 233.5 kB / 0.6889 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004476/0.385, allocations: 230.7 kB / 0.6891 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.01e-05/0.3851, allocations: 26.75 kB / 0.6891 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004955/0.3856, allocations: 273.8 kB / 0.6894 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.3857, allocations: 119.8 kB / 0.6895 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002021/0.386, allocations: 211 kB / 0.6897 GB, free: 13.06 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006596/0.3866, allocations: 0.5924 MB / 0.6903 GB, free: 12.99 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3866, allocations: 0.5156 kB / 0.6903 GB, free: 12.99 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3866, allocations: 1.094 kB / 0.6903 GB, free: 12.99 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.3866, allocations: 0 / 0.6903 GB, free: 12.99 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.0009691/0.3876, allocations: 0.7261 MB / 0.691 GB, free: 12.48 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.3877, allocations: 9.078 kB / 0.691 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008733/0.3885, allocations: 137.5 kB / 0.6911 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005953/0.3892, allocations: 411.2 kB / 0.6915 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.3892, allocations: 28.44 kB / 0.6915 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.11e-05/0.3893, allocations: 29.83 kB / 0.6916 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007307/0.39, allocations: 0.5568 MB / 0.6921 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.39, allocations: 1.938 kB / 0.6921 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.3901, allocations: 12.22 kB / 0.6921 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.401e-05/0.3901, allocations: 44.16 kB / 0.6922 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006791/0.3908, allocations: 408.2 kB / 0.6926 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.393, allocations: 3.326 MB / 0.6958 GB, free: 9.348 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006306/0.3936, allocations: 343.6 kB / 0.6961 GB, free: 9.312 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/0.3939, allocations: 177.6 kB / 0.6963 GB, free: 9.305 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.3939, allocations: 8.812 kB / 0.6963 GB, free: 9.305 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.267e-05/0.394, allocations: 32.5 kB / 0.6963 GB, free: 9.266 MB / 494.1 MB Notification: Performance of pre-optimization done (n=26): time 2.515e-06/0.394, allocations: 3.938 kB / 0.6963 GB, free: 9.266 MB / 494.1 MB Notification: Performance of matching and sorting (n=27): time 0.001841/0.3958, allocations: 1.066 MB / 0.6974 GB, free: 8.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.925e-05/0.3958, allocations: 53.8 kB / 0.6974 GB, free: 8.777 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.3961, allocations: 339.9 kB / 0.6978 GB, free: 8.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.3962, allocations: 31.61 kB / 0.6978 GB, free: 8.629 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.3963, allocations: 244 kB / 0.698 GB, free: 8.48 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.647e-05/0.3964, allocations: 102.2 kB / 0.6981 GB, free: 8.418 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.975e-05/0.3965, allocations: 77.55 kB / 0.6982 GB, free: 8.398 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.82e-05/0.3965, allocations: 350.3 kB / 0.6985 GB, free: 8.082 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/0.3968, allocations: 149.4 kB / 0.6987 GB, free: 8.078 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000303/0.3971, allocations: 286.8 kB / 0.6989 GB, free: 7.855 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005937/0.3977, allocations: 485.5 kB / 0.6994 GB, free: 7.551 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3977, allocations: 1.188 kB / 0.6994 GB, free: 7.551 MB / 494.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009412/0.3987, allocations: 0.566 MB / 0.7 GB, free: 7.336 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.3987, allocations: 9.641 kB / 0.7 GB, free: 7.336 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3987, allocations: 5.719 kB / 0.7 GB, free: 7.336 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003003/0.399, allocations: 86.75 kB / 0.7001 GB, free: 7.297 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003396/0.3994, allocations: 89.09 kB / 0.7001 GB, free: 7.293 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.3994, allocations: 11.69 kB / 0.7002 GB, free: 7.293 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002513/0.3997, allocations: 32.73 kB / 0.7002 GB, free: 7.281 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.3997, allocations: 18.75 kB / 0.7002 GB, free: 7.281 MB / 494.1 MB 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.0001496/0.3998, allocations: 178.9 kB / 0.7004 GB, free: 7.137 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.407e-05/0.3999, allocations: 39.56 kB / 0.7004 GB, free: 7.117 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000844/0.4008, allocations: 463.4 kB / 0.7009 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.4008, allocations: 3.281 kB / 0.7009 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.4008, allocations: 5.047 kB / 0.7009 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.4008, allocations: 2.422 kB / 0.7009 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.4022, allocations: 0.9553 MB / 0.7018 GB, free: 6.367 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.4022, allocations: 5.703 kB / 0.7018 GB, free: 6.363 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.4024, allocations: 49.72 kB / 0.7018 GB, free: 6.363 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002195/0.4026, allocations: 87 kB / 0.7019 GB, free: 6.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.4027, allocations: 5.969 kB / 0.7019 GB, free: 6.316 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.4027, allocations: 6.906 kB / 0.7019 GB, free: 6.312 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4027, allocations: 1.062 kB / 0.7019 GB, free: 6.312 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000743/0.4034, allocations: 0.5455 MB / 0.7025 GB, free: 6.004 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.4036, allocations: 139.4 kB / 0.7026 GB, free: 5.879 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.14e-05/0.4037, allocations: 3.516 kB / 0.7026 GB, free: 5.879 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.4039, allocations: 22.61 kB / 0.7026 GB, free: 5.875 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.313e-05/0.404, allocations: 30.95 kB / 0.7027 GB, free: 5.863 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.404, allocations: 14.28 kB / 0.7027 GB, free: 5.855 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002054/0.4042, allocations: 234 kB / 0.7029 GB, free: 5.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4042, allocations: 0 / 0.7029 GB, free: 5.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004062/0.4046, allocations: 86.75 kB / 0.703 GB, free: 5.723 MB / 494.1 MB 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 9.457e-05/0.4047, allocations: 107.2 kB / 0.7031 GB, free: 5.629 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000757/0.4055, allocations: 0.6314 MB / 0.7037 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.4055, allocations: 0 / 0.7037 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003615/0.4059, allocations: 433.6 kB / 0.7041 GB, free: 4.863 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006699/0.4065, allocations: 139.1 kB / 0.7042 GB, free: 4.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000936/0.4075, allocations: 0.7195 MB / 0.705 GB, free: 4.414 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.4077, allocations: 0.8237 MB / 0.7058 GB, free: 3.703 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002166/0.408, allocations: 77.66 kB / 0.7058 GB, free: 3.695 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.868e-05/0.408, allocations: 34.08 kB / 0.7059 GB, free: 3.684 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4081, allocations: 0 / 0.7059 GB, free: 3.684 MB / 494.1 MB Notification: Performance of Templates: time 0.009241/0.4173, allocations: 4.675 MB / 0.7104 GB, free: 3.43 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)