Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009758/0.0009757, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001138/0.001138, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001753/0.001753, allocations: 275 kB / 291.4 MB, free: 1.965 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.128/1.128, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0007633/0.0007635, allocations: 13.05 kB / 0.598 GB, free: 28.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2285, allocations: 88.55 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.00337/0.2319, allocations: 2.598 MB / 0.687 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002549/0.2345, allocations: 1.617 MB / 0.6886 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.2347, allocations: 4 kB / 0.6886 GB, free: 11.22 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.2349, allocations: 35.7 kB / 0.6886 GB, free: 11.19 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004527/0.2353, allocations: 148 kB / 0.6888 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005409/0.2359, allocations: 192.8 kB / 0.689 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004293/0.2363, allocations: 414.6 kB / 0.6894 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000738/0.2371, allocations: 389.7 kB / 0.6897 GB, free: 10.06 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.2373, allocations: 131.5 kB / 0.6899 GB, free: 9.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003272/0.2376, allocations: 161 kB / 0.69 GB, free: 9.773 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.2377, allocations: 12 kB / 0.69 GB, free: 9.762 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002935/0.238, allocations: 151.8 kB / 0.6902 GB, free: 9.613 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.259e-05/0.2381, allocations: 76.66 kB / 0.6902 GB, free: 9.539 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.526e-05/0.2382, allocations: 77.56 kB / 0.6903 GB, free: 9.457 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003973/0.2386, allocations: 339.1 kB / 0.6906 GB, free: 9.125 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2386, allocations: 0.6875 kB / 0.6906 GB, free: 9.125 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.2386, allocations: 0.7188 kB / 0.6906 GB, free: 9.125 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.2386, allocations: 3.938 kB / 0.6906 GB, free: 9.121 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001097/0.2397, allocations: 0.5993 MB / 0.6912 GB, free: 8.469 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2398, allocations: 12.03 kB / 0.6912 GB, free: 8.457 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006583/0.2404, allocations: 91.61 kB / 0.6913 GB, free: 8.367 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003179/0.2408, allocations: 274.5 kB / 0.6916 GB, free: 8.059 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.2408, allocations: 20.42 kB / 0.6916 GB, free: 8.039 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.937e-05/0.2409, allocations: 27.98 kB / 0.6916 GB, free: 8.012 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007519/0.2416, allocations: 418.6 kB / 0.692 GB, free: 7.578 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.2416, allocations: 3.938 kB / 0.692 GB, free: 7.574 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.772e-05/0.2417, allocations: 15.98 kB / 0.6921 GB, free: 7.559 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-05/0.2417, allocations: 20.36 kB / 0.6921 GB, free: 7.535 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00083/0.2426, allocations: 416.7 kB / 0.6925 GB, free: 7.129 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.2443, allocations: 1.607 MB / 0.694 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.2454, allocations: 487.1 kB / 0.6945 GB, free: 4.902 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004078/0.2458, allocations: 205.6 kB / 0.6947 GB, free: 4.695 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001643/0.246, allocations: 97.03 kB / 0.6948 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005618/0.2466, allocations: 284 kB / 0.6951 GB, free: 4.285 MB / 494.1 MB Notification: Performance of pre-optimization done (n=27): time 2.264e-06/0.2466, allocations: 3.938 kB / 0.6951 GB, free: 4.281 MB / 494.1 MB Notification: Performance of matching and sorting (n=28): time 0.001876/0.2485, allocations: 0.7772 MB / 0.6958 GB, free: 3.477 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.2486, allocations: 85.05 kB / 0.6959 GB, free: 3.375 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.2488, allocations: 221 kB / 0.6961 GB, free: 3.148 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.2488, allocations: 33.7 kB / 0.6962 GB, free: 3.109 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.249, allocations: 168.2 kB / 0.6963 GB, free: 2.938 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.221e-05/0.249, allocations: 90.73 kB / 0.6964 GB, free: 2.848 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.357e-05/0.2491, allocations: 8 kB / 0.6964 GB, free: 2.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.2492, allocations: 342.8 kB / 0.6967 GB, free: 2.496 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003745/0.2496, allocations: 180.2 kB / 0.6969 GB, free: 2.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.25, allocations: 266.3 kB / 0.6972 GB, free: 2.031 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000432/0.2505, allocations: 231 kB / 0.6974 GB, free: 1.801 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2505, allocations: 0 / 0.6974 GB, free: 1.801 MB / 494.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001048/0.2515, allocations: 0.5525 MB / 0.6979 GB, free: 1.234 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.2517, allocations: 191.5 kB / 0.6981 GB, free: 1.008 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.2517, allocations: 0 / 0.6981 GB, free: 1.008 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002335/0.2519, allocations: 48.77 kB / 0.6981 GB, free: 0.957 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003856/0.2523, allocations: 87.88 kB / 0.6982 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.2538, allocations: 1.497 MB / 0.6997 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003054/0.2541, allocations: 52.05 kB / 0.6997 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.2541, allocations: 19.98 kB / 0.6998 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.274e-06/0.2541, allocations: 4 kB / 0.6998 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001043/0.2552, allocations: 0.4946 MB / 0.7002 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.2552, allocations: 11.92 kB / 0.7003 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001298/0.2554, allocations: 40.81 kB / 0.7003 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.2557, allocations: 88.03 kB / 0.7004 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.257, allocations: 1.493 MB / 0.7018 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.2573, allocations: 47.8 kB / 0.7019 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.2573, allocations: 16 kB / 0.7019 GB, free: 12.83 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002866/0.2576, allocations: 236.5 kB / 0.7021 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.2577, allocations: 23.72 kB / 0.7022 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.2587, allocations: 0.4883 MB / 0.7026 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2587, allocations: 4 kB / 0.7026 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.2587, allocations: 0 / 0.7026 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2588, allocations: 4 kB / 0.7026 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006741/0.2594, allocations: 0.57 MB / 0.7032 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2594, allocations: 3.938 kB / 0.7032 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003479/0.2598, allocations: 79.92 kB / 0.7033 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001193/0.2599, allocations: 36.92 kB / 0.7033 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.829e-05/0.26, allocations: 8.141 kB / 0.7033 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.261, allocations: 1.417 MB / 0.7047 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.261, allocations: 0 / 0.7047 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009339/0.262, allocations: 0.5654 MB / 0.7052 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.2621, allocations: 136.7 kB / 0.7054 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.2622, allocations: 8 kB / 0.7054 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.2625, allocations: 39.95 kB / 0.7054 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.2626, allocations: 31.89 kB / 0.7055 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.686e-05/0.2626, allocations: 19.94 kB / 0.7055 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001627/0.2628, allocations: 168.5 kB / 0.7056 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2628, allocations: 4 kB / 0.7056 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006219/0.2634, allocations: 128 kB / 0.7058 GB, free: 8.617 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: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002052/0.2636, allocations: 115.2 kB / 0.7059 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00183/0.2655, allocations: 1.012 MB / 0.7069 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.2655, allocations: 0 / 0.7069 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005889/0.2661, allocations: 342.8 kB / 0.7072 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004981/0.2666, allocations: 53.62 kB / 0.7072 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.2679, allocations: 0.7373 MB / 0.708 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.2683, allocations: 0.7839 MB / 0.7087 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002923/0.2686, allocations: 98.33 kB / 0.7088 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.101e-05/0.2687, allocations: 23.44 kB / 0.7088 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.2687, allocations: 0 / 0.7088 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of Templates: time 0.008196/0.2769, allocations: 4.025 MB / 0.7128 GB, free: 1.332 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)