Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001138/0.001138, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001725/0.001725, allocations: 197 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.1 MB / 222 MB, free: 5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.682/1.682, allocations: 292.2 MB / 0.5484 GB, free: 13.72 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 64.06 kB / 0.6708 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2646, allocations: 114.5 MB / 0.7827 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.00478/0.2694, allocations: 3.081 MB / 0.7857 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002851/0.2723, allocations: 1.789 MB / 0.7874 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.2725, allocations: 7.938 kB / 0.7874 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000774/0.2733, allocations: 215.3 kB / 0.7876 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004171/0.2737, allocations: 175.2 kB / 0.7878 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006632/0.2744, allocations: 239.4 kB / 0.788 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005864/0.275, allocations: 0.4908 MB / 0.7885 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000461/0.2754, allocations: 206.1 kB / 0.7887 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.2756, allocations: 139.5 kB / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003035/0.2759, allocations: 183.4 kB / 0.789 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.219e-05/0.276, allocations: 20 kB / 0.789 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005479/0.2766, allocations: 303.4 kB / 0.7893 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.2767, allocations: 95.64 kB / 0.7894 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.2769, allocations: 131.3 kB / 0.7895 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005827/0.2775, allocations: 486.4 kB / 0.79 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.2775, allocations: 0 / 0.79 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2775, allocations: 0 / 0.79 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.2775, allocations: 0 / 0.79 GB, free: 6.473 MB / 0.6075 GB 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.001365/0.2789, allocations: 0.637 MB / 0.7906 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.2789, allocations: 8.031 kB / 0.7906 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007603/0.2797, allocations: 104.5 kB / 0.7907 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.2801, allocations: 275.5 kB / 0.791 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.2801, allocations: 12.81 kB / 0.791 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.049e-05/0.2802, allocations: 20.38 kB / 0.791 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007761/0.281, allocations: 418.9 kB / 0.7914 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.281, allocations: 4 kB / 0.7914 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.281, allocations: 4 kB / 0.7914 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.723e-05/0.2811, allocations: 32.36 kB / 0.7915 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008373/0.2819, allocations: 384.7 kB / 0.7918 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.2837, allocations: 1.619 MB / 0.7934 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.2849, allocations: 457.1 kB / 0.7939 GB, free: 2.266 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004061/0.2853, allocations: 193.6 kB / 0.794 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001836/0.2855, allocations: 97.09 kB / 0.7941 GB, free: 1.957 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006041/0.2861, allocations: 258.5 kB / 0.7944 GB, free: 1.688 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=27): time 2.415e-06/0.2861, allocations: 0 / 0.7944 GB, free: 1.688 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.001961/0.2881, allocations: 0.7467 MB / 0.7951 GB, free: 0.9141 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.2882, allocations: 93.03 kB / 0.7952 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.2884, allocations: 221 kB / 0.7954 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.288e-05/0.2884, allocations: 29.7 kB / 0.7954 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.2886, allocations: 176.2 kB / 0.7956 GB, free: 376 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.74e-05/0.2886, allocations: 94.66 kB / 0.7957 GB, free: 280 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.2888, allocations: 61.69 kB / 0.7958 GB, free: 212 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.2889, allocations: 338.8 kB / 0.7961 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003903/0.2893, allocations: 173.1 kB / 0.7962 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/0.2897, allocations: 245.1 kB / 0.7965 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008138/0.2905, allocations: 451.4 kB / 0.7969 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2905, allocations: 0 / 0.7969 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001071/0.2916, allocations: 0.5433 MB / 0.7974 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.343e-05/0.2917, allocations: 33.7 kB / 0.7975 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2917, allocations: 288 / 0.7975 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002533/0.2919, allocations: 48.81 kB / 0.7975 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003868/0.2923, allocations: 75.88 kB / 0.7976 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.2937, allocations: 1.508 MB / 0.7991 GB, free: 12.58 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/0.2941, allocations: 43.8 kB / 0.7991 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.776e-05/0.2941, allocations: 12 kB / 0.7991 GB, free: 12.53 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004676/0.2946, allocations: 280.3 kB / 0.7994 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003957/0.295, allocations: 230.3 kB / 0.7996 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000741/0.2958, allocations: 445.6 kB / 0.8 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.2958, allocations: 0 / 0.8 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.00102/0.2968, allocations: 0.5034 MB / 0.8005 GB, free: 11 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.2968, allocations: 37.69 kB / 0.8006 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2969, allocations: 3.938 kB / 0.8006 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000144/0.297, allocations: 41.11 kB / 0.8006 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003431/0.2974, allocations: 83.86 kB / 0.8007 GB, free: 10.83 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.2987, allocations: 1.505 MB / 0.8021 GB, free: 9.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.299, allocations: 43.8 kB / 0.8022 GB, free: 9.137 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.299, allocations: 12 kB / 0.8022 GB, free: 9.125 MB / 0.6231 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 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * 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 (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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.2992, allocations: 200.5 kB / 0.8024 GB, free: 8.922 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.182e-05/0.2992, allocations: 27.7 kB / 0.8024 GB, free: 8.895 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009958/0.3002, allocations: 460.7 kB / 0.8029 GB, free: 8.438 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3003, allocations: 4.125 kB / 0.8029 GB, free: 8.434 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.3003, allocations: 4 kB / 0.8029 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.3003, allocations: 7.938 kB / 0.8029 GB, free: 8.422 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006075/0.3009, allocations: 0.5622 MB / 0.8034 GB, free: 7.797 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3009, allocations: 0 / 0.8034 GB, free: 7.797 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.3013, allocations: 79.8 kB / 0.8035 GB, free: 7.719 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.3014, allocations: 44.91 kB / 0.8035 GB, free: 7.672 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.3014, allocations: 7.938 kB / 0.8035 GB, free: 7.664 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.3025, allocations: 1.409 MB / 0.8049 GB, free: 6.121 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3025, allocations: 12.03 kB / 0.8049 GB, free: 6.109 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009562/0.3035, allocations: 0.5379 MB / 0.8055 GB, free: 5.543 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.3036, allocations: 128.7 kB / 0.8056 GB, free: 5.398 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.3037, allocations: 7.984 kB / 0.8056 GB, free: 5.391 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002998/0.304, allocations: 35.95 kB / 0.8056 GB, free: 5.355 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.3041, allocations: 35.89 kB / 0.8057 GB, free: 5.32 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.3041, allocations: 4 kB / 0.8057 GB, free: 5.316 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001647/0.3043, allocations: 176.5 kB / 0.8058 GB, free: 5.141 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.563e-06/0.3043, allocations: 4 kB / 0.8058 GB, free: 5.137 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006057/0.3049, allocations: 131.9 kB / 0.806 GB, free: 5.008 MB / 0.6231 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 (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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001873/0.3051, allocations: 116.9 kB / 0.8061 GB, free: 4.887 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001801/0.3069, allocations: 0.9693 MB / 0.807 GB, free: 3.867 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3069, allocations: 4 kB / 0.807 GB, free: 3.863 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005576/0.3075, allocations: 331.3 kB / 0.8073 GB, free: 3.527 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.308, allocations: 46.81 kB / 0.8074 GB, free: 3.484 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.3091, allocations: 0.7223 MB / 0.8081 GB, free: 2.727 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.3095, allocations: 0.7839 MB / 0.8089 GB, free: 1.914 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002856/0.3097, allocations: 98.23 kB / 0.8089 GB, free: 1.82 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.581e-05/0.3099, allocations: 27.42 kB / 0.809 GB, free: 1.793 MB / 0.6231 GB Notification: Performance of SimCode: time 3.7e-07/0.3099, allocations: 0 / 0.809 GB, free: 1.793 MB / 0.6231 GB Notification: Performance of Templates: time 0.007776/0.3176, allocations: 4.213 MB / 0.8131 GB, free: 13.59 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)