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.001196/0.001196, allocations: 115 kB / 16.37 MB, free: 6.016 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.001018/0.001018, allocations: 193.2 kB / 17.31 MB, free: 5.609 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.276/1.276, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002168/0.002168, allocations: 281.1 kB / 291.4 MB, free: 14.43 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.2 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 90.39 kB / 0.5967 GB, free: 14.39 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1425, allocations: 86.98 MB / 0.6816 GB, free: 7.398 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004371/0.1469, allocations: 3.247 MB / 0.6848 GB, free: 4.133 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002632/0.1495, allocations: 1.87 MB / 0.6866 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.1496, allocations: 7.938 kB / 0.6866 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008724/0.1505, allocations: 290.8 kB / 0.6869 GB, free: 1.961 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003796/0.1509, allocations: 211 kB / 0.6871 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000561/0.1515, allocations: 291.3 kB / 0.6874 GB, free: 1.469 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000394/0.1519, allocations: 402.7 kB / 0.6878 GB, free: 1.074 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003199/0.1522, allocations: 204.2 kB / 0.688 GB, free: 0.875 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.1524, allocations: 159.4 kB / 0.6881 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003148/0.1527, allocations: 199.3 kB / 0.6883 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.671e-05/0.1528, allocations: 24 kB / 0.6883 GB, free: 0.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003267/0.1531, allocations: 243.5 kB / 0.6886 GB, free: 268 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.1532, allocations: 119.7 kB / 0.6887 GB, free: 148 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.1534, allocations: 147.2 kB / 0.6888 GB, free: 0 / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2356/0.389, allocations: 462 kB / 0.6892 GB, free: 13.19 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3891, allocations: 0.9062 kB / 0.6892 GB, free: 13.19 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3891, allocations: 2.844 kB / 0.6893 GB, free: 13.19 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3891, allocations: 0 / 0.6893 GB, free: 13.19 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0009314/0.39, allocations: 0.5854 MB / 0.6898 GB, free: 12.78 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3901, allocations: 10.44 kB / 0.6898 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007471/0.3908, allocations: 94.16 kB / 0.6899 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003341/0.3912, allocations: 282.6 kB / 0.6902 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.3912, allocations: 20.09 kB / 0.6902 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.3913, allocations: 32.81 kB / 0.6902 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006023/0.3919, allocations: 452.6 kB / 0.6907 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.3919, allocations: 3.188 kB / 0.6907 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.392, allocations: 13.83 kB / 0.6907 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001406/0.3921, allocations: 42.3 kB / 0.6907 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005319/0.3927, allocations: 349.5 kB / 0.6911 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.3947, allocations: 2.194 MB / 0.6932 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000407/0.3951, allocations: 268 kB / 0.6935 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.3953, allocations: 163.7 kB / 0.6936 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.3954, allocations: 7.172 kB / 0.6936 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.3954, allocations: 36.09 kB / 0.6937 GB, free: 10.79 MB / 494.1 MB Notification: Performance of pre-optimization done (n=22): time 2.094e-06/0.3954, allocations: 1.406 kB / 0.6937 GB, free: 10.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001624/0.397, allocations: 1.059 MB / 0.6947 GB, free: 10.39 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.21e-05/0.397, allocations: 54.28 kB / 0.6947 GB, free: 10.32 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.3973, allocations: 254.1 kB / 0.695 GB, free: 10.22 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.3973, allocations: 32.45 kB / 0.695 GB, free: 10.19 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.366e-05/0.3974, allocations: 185.8 kB / 0.6952 GB, free: 10.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.017e-05/0.3974, allocations: 80.48 kB / 0.6953 GB, free: 10 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.3976, allocations: 78.7 kB / 0.6953 GB, free: 9.98 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.658e-05/0.3976, allocations: 335.8 kB / 0.6957 GB, free: 9.668 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.3978, allocations: 150.1 kB / 0.6958 GB, free: 9.668 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.3981, allocations: 240.7 kB / 0.696 GB, free: 9.574 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004706/0.3986, allocations: 402.6 kB / 0.6964 GB, free: 9.488 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3986, allocations: 2.781 kB / 0.6964 GB, free: 9.488 MB / 494.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001069/0.3997, allocations: 0.5937 MB / 0.697 GB, free: 9.355 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3997, allocations: 6.906 kB / 0.697 GB, free: 9.355 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3997, allocations: 2.656 kB / 0.697 GB, free: 9.355 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006761/0.4004, allocations: 188.9 kB / 0.6972 GB, free: 9.316 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.4007, allocations: 63.17 kB / 0.6973 GB, free: 9.312 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/0.4032, allocations: 2.499 MB / 0.6997 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.4035, allocations: 15.75 kB / 0.6997 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.4036, allocations: 15.92 kB / 0.6997 GB, free: 7.512 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.0001373/0.4037, allocations: 166.1 kB / 0.6999 GB, free: 7.375 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-05/0.4038, allocations: 26.53 kB / 0.6999 GB, free: 7.359 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005231/0.4043, allocations: 358.7 kB / 0.7003 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4043, allocations: 6.469 kB / 0.7003 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.4043, allocations: 0.75 kB / 0.7003 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.4043, allocations: 0.6562 kB / 0.7003 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.4054, allocations: 0.8144 MB / 0.7011 GB, free: 6.711 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4054, allocations: 1.031 kB / 0.7011 GB, free: 6.711 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004051/0.4058, allocations: 69.77 kB / 0.7011 GB, free: 6.711 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.185e-06/0.4058, allocations: 1.312 kB / 0.7011 GB, free: 6.711 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.4058, allocations: 13.34 kB / 0.7011 GB, free: 6.703 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.4058, allocations: 6.094 kB / 0.7011 GB, free: 6.703 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4058, allocations: 1.344 kB / 0.7011 GB, free: 6.703 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007067/0.4066, allocations: 0.6115 MB / 0.7017 GB, free: 6.379 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.4067, allocations: 128.9 kB / 0.7019 GB, free: 6.262 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.536e-05/0.4068, allocations: 9.562 kB / 0.7019 GB, free: 6.258 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.407, allocations: 12.53 kB / 0.7019 GB, free: 6.254 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.407, allocations: 20.03 kB / 0.7019 GB, free: 6.246 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.407, allocations: 6.281 kB / 0.7019 GB, free: 6.246 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001544/0.4072, allocations: 181.5 kB / 0.7021 GB, free: 6.141 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4072, allocations: 2.625 kB / 0.7021 GB, free: 6.141 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004259/0.4076, allocations: 84.91 kB / 0.7022 GB, free: 6.133 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.0001187/0.4078, allocations: 116.1 kB / 0.7023 GB, free: 6.039 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000824/0.4086, allocations: 0.5275 MB / 0.7028 GB, free: 5.789 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4086, allocations: 0 / 0.7028 GB, free: 5.789 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002012/0.4088, allocations: 149.4 kB / 0.7029 GB, free: 5.746 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.4093, allocations: 70.95 kB / 0.703 GB, free: 5.719 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.4106, allocations: 0.8297 MB / 0.7038 GB, free: 5.238 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.4108, allocations: 0.7909 MB / 0.7046 GB, free: 4.531 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000198/0.411, allocations: 76.53 kB / 0.7047 GB, free: 4.523 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.943e-05/0.4111, allocations: 27.66 kB / 0.7047 GB, free: 4.516 MB / 494.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4111, allocations: 4 kB / 0.7047 GB, free: 4.512 MB / 494.1 MB Notification: Performance of Templates: time 0.007969/0.4191, allocations: 3.985 MB / 0.7086 GB, free: 4.273 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)