Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.DynamicLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 105.9 kB / 16.27 MB, free: 6.414 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.001426/0.001426, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002268/0.002268, allocations: 293.7 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9249/0.9249, allocations: 169.3 MB / 0.4988 GB, free: 4.5 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 93.44 kB / 0.5959 GB, free: 15.11 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1486, allocations: 86.98 MB / 0.6809 GB, free: 8.141 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004823/0.1534, allocations: 3.247 MB / 0.684 GB, free: 4.871 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002901/0.1563, allocations: 1.862 MB / 0.6858 GB, free: 3 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.1565, allocations: 7.938 kB / 0.6858 GB, free: 2.992 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009026/0.1575, allocations: 290.8 kB / 0.6861 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004949/0.158, allocations: 219 kB / 0.6863 GB, free: 2.492 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000682/0.1587, allocations: 283.3 kB / 0.6866 GB, free: 2.215 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004661/0.1592, allocations: 410.7 kB / 0.687 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003513/0.1595, allocations: 192.2 kB / 0.6872 GB, free: 1.625 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002426/0.1598, allocations: 163.4 kB / 0.6873 GB, free: 1.465 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003644/0.1601, allocations: 203.3 kB / 0.6875 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.1602, allocations: 24 kB / 0.6876 GB, free: 1.242 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004075/0.1606, allocations: 235.5 kB / 0.6878 GB, free: 1.012 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.1608, allocations: 123.7 kB / 0.6879 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.1609, allocations: 143.3 kB / 0.688 GB, free: 0.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005444/0.1615, allocations: 470.5 kB / 0.6885 GB, free: 296 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1615, allocations: 0 / 0.6885 GB, free: 296 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1615, allocations: 4 kB / 0.6885 GB, free: 292 kB / 494.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1615, allocations: 0 / 0.6885 GB, free: 292 kB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.2419/0.4034, allocations: 0.5872 MB / 0.6891 GB, free: 18.41 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.4035, allocations: 9.75 kB / 0.6891 GB, free: 18.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008883/0.4044, allocations: 89.2 kB / 0.6892 GB, free: 18.4 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.4047, allocations: 272.7 kB / 0.6894 GB, free: 18.18 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.4047, allocations: 20.61 kB / 0.6894 GB, free: 18.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.4048, allocations: 33.98 kB / 0.6895 GB, free: 18.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/0.4055, allocations: 444.5 kB / 0.6899 GB, free: 18.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.4055, allocations: 8.328 kB / 0.6899 GB, free: 18.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.608e-05/0.4055, allocations: 13.47 kB / 0.6899 GB, free: 18.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001525/0.4057, allocations: 39 kB / 0.6899 GB, free: 18.07 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005149/0.4062, allocations: 355 kB / 0.6903 GB, free: 18.07 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/0.4083, allocations: 2.2 MB / 0.6924 GB, free: 16.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00041/0.4087, allocations: 265.1 kB / 0.6927 GB, free: 16.21 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.4089, allocations: 159.8 kB / 0.6928 GB, free: 16.15 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.4089, allocations: 9.938 kB / 0.6928 GB, free: 16.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.534e-05/0.409, allocations: 39.27 kB / 0.6929 GB, free: 16.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.409, allocations: 1.188 kB / 0.6929 GB, free: 16.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001679/0.4107, allocations: 1.057 MB / 0.6939 GB, free: 15.47 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.37e-05/0.4107, allocations: 53.94 kB / 0.694 GB, free: 15.41 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.411, allocations: 251.9 kB / 0.6942 GB, free: 15.26 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.411, allocations: 31.08 kB / 0.6942 GB, free: 15.22 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.951e-05/0.4111, allocations: 186.9 kB / 0.6944 GB, free: 15.06 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.208e-05/0.4111, allocations: 85.94 kB / 0.6945 GB, free: 15 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.4112, allocations: 75.98 kB / 0.6946 GB, free: 14.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.711e-05/0.4113, allocations: 339.7 kB / 0.6949 GB, free: 14.63 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002315/0.4115, allocations: 150.5 kB / 0.695 GB, free: 14.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.4118, allocations: 239 kB / 0.6953 GB, free: 14.43 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004734/0.4123, allocations: 401.5 kB / 0.6957 GB, free: 14.21 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4123, allocations: 0 / 0.6957 GB, free: 14.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001071/0.4134, allocations: 0.5986 MB / 0.6962 GB, free: 13.96 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.4134, allocations: 6.656 kB / 0.6962 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.4134, allocations: 5.766 kB / 0.6962 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006989/0.4141, allocations: 186.2 kB / 0.6964 GB, free: 13.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.4144, allocations: 63.64 kB / 0.6965 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002564/0.417, allocations: 2.496 MB / 0.6989 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.4173, allocations: 16.27 kB / 0.6989 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.4174, allocations: 16.05 kB / 0.699 GB, free: 12.09 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001527/0.4175, allocations: 167.8 kB / 0.6991 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.836e-05/0.4176, allocations: 22.84 kB / 0.6991 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005202/0.4181, allocations: 361.7 kB / 0.6995 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.4181, allocations: 6.906 kB / 0.6995 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.4181, allocations: 1.078 kB / 0.6995 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.4181, allocations: 0.625 kB / 0.6995 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009799/0.4191, allocations: 0.8133 MB / 0.7003 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4191, allocations: 2.125 kB / 0.7003 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003976/0.4195, allocations: 73.86 kB / 0.7004 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4195, allocations: 1.906 kB / 0.7004 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.4196, allocations: 8.5 kB / 0.7004 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.4196, allocations: 2.531 kB / 0.7004 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.4196, allocations: 1.094 kB / 0.7004 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007161/0.4203, allocations: 0.6159 MB / 0.701 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.4204, allocations: 128.7 kB / 0.7011 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.565e-05/0.4205, allocations: 8.5 kB / 0.7011 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.4207, allocations: 9.922 kB / 0.7011 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.481e-05/0.4207, allocations: 15.88 kB / 0.7011 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.4208, allocations: 9.469 kB / 0.7011 GB, free: 10.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.4209, allocations: 186.1 kB / 0.7013 GB, free: 10.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4209, allocations: 0 / 0.7013 GB, free: 10.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004357/0.4214, allocations: 85.31 kB / 0.7014 GB, free: 10.69 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001336/0.4215, allocations: 113.5 kB / 0.7015 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009518/0.4225, allocations: 0.5647 MB / 0.7021 GB, free: 10.33 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.4225, allocations: 0 / 0.7021 GB, free: 10.33 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.4227, allocations: 149.9 kB / 0.7022 GB, free: 10.28 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/0.4232, allocations: 59.72 kB / 0.7023 GB, free: 10.27 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.4246, allocations: 0.8763 MB / 0.7031 GB, free: 9.742 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.4249, allocations: 0.7941 MB / 0.7039 GB, free: 9.035 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.396e-05/0.425, allocations: 24.83 kB / 0.7039 GB, free: 9.027 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.425, allocations: 1.125 kB / 0.7039 GB, free: 9.027 MB / 494.1 MB Notification: Performance of Templates: time 0.007645/0.4326, allocations: 4.442 MB / 0.7082 GB, free: 8.66 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)