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.001272/0.001272, allocations: 101.8 kB / 16.27 MB, free: 5.965 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.001218/0.001219, allocations: 188.1 kB / 17.2 MB, free: 5.59 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.445/1.445, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.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.788/1.788, allocations: 292.3 MB / 0.5495 GB, free: 17.46 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.001478/0.001478, allocations: 67.89 kB / 0.6722 GB, free: 6.539 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2445, allocations: 114.6 MB / 0.784 GB, free: 3.871 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005297/0.2498, allocations: 3.026 MB / 0.787 GB, free: 0.8242 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.425/0.6748, allocations: 1.777 MB / 0.7887 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001904/0.6751, allocations: 5.125 kB / 0.7887 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0007543/0.6759, allocations: 238.3 kB / 0.789 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0003986/0.6763, allocations: 196.5 kB / 0.7891 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005798/0.6769, allocations: 253.9 kB / 0.7894 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003792/0.6773, allocations: 387.6 kB / 0.7898 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003495/0.6776, allocations: 210.7 kB / 0.79 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002221/0.6779, allocations: 166 kB / 0.7901 GB, free: 46.11 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002778/0.6781, allocations: 178.6 kB / 0.7903 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.109e-05/0.6782, allocations: 26.59 kB / 0.7903 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003869/0.6786, allocations: 265.5 kB / 0.7906 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.72e-05/0.6787, allocations: 97.39 kB / 0.7907 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.6788, allocations: 145.5 kB / 0.7908 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004592/0.6793, allocations: 461.3 kB / 0.7912 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.6793, allocations: 0 / 0.7912 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.493e-06/0.6793, allocations: 0 / 0.7912 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.6793, allocations: 0 / 0.7912 GB, free: 45.97 MB / 0.6544 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.001123/0.6805, allocations: 0.6366 MB / 0.7919 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.6805, allocations: 12.91 kB / 0.7919 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006952/0.6812, allocations: 98.08 kB / 0.792 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.6815, allocations: 289.5 kB / 0.7922 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.6815, allocations: 14.75 kB / 0.7923 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.349e-05/0.6816, allocations: 25.31 kB / 0.7923 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006898/0.6823, allocations: 412.3 kB / 0.7927 GB, free: 45.16 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.6823, allocations: 3.938 kB / 0.7927 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.6824, allocations: 9.094 kB / 0.7927 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.029e-05/0.6824, allocations: 24.8 kB / 0.7927 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007643/0.6832, allocations: 388.6 kB / 0.7931 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.6847, allocations: 1.606 MB / 0.7946 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.6858, allocations: 465.1 kB / 0.7951 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003903/0.6862, allocations: 194.7 kB / 0.7953 GB, free: 44 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.6863, allocations: 93.72 kB / 0.7954 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005012/0.6868, allocations: 265.5 kB / 0.7956 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=27): time 1.934e-06/0.6868, allocations: 0 / 0.7956 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of matching and sorting (n=28): time 0.001741/0.6886, allocations: 0.7369 MB / 0.7963 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.6886, allocations: 87.83 kB / 0.7964 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/0.6888, allocations: 229.3 kB / 0.7966 GB, free: 43.44 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.6889, allocations: 32.73 kB / 0.7967 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.258e-05/0.6889, allocations: 167 kB / 0.7968 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.926e-05/0.689, allocations: 87.61 kB / 0.7969 GB, free: 43.23 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.6891, allocations: 77.23 kB / 0.797 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.809e-05/0.6892, allocations: 326.8 kB / 0.7973 GB, free: 42.9 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003755/0.6896, allocations: 177.8 kB / 0.7975 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003964/0.69, allocations: 250.8 kB / 0.7977 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007614/0.6907, allocations: 451.4 kB / 0.7981 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.6908, allocations: 0 / 0.7981 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001038/0.6918, allocations: 0.5328 MB / 0.7987 GB, free: 42.6 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.038e-05/0.6918, allocations: 37.12 kB / 0.7987 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.6919, allocations: 0 / 0.7987 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002471/0.6921, allocations: 40.69 kB / 0.7987 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000386/0.6925, allocations: 84.73 kB / 0.7988 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.6938, allocations: 1.619 MB / 0.8004 GB, free: 41.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.6941, allocations: 44.48 kB / 0.8004 GB, free: 41.16 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.6942, allocations: 15.59 kB / 0.8004 GB, free: 41.16 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004924/0.6947, allocations: 277.4 kB / 0.8007 GB, free: 41.04 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004219/0.6951, allocations: 239.2 kB / 0.8009 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008019/0.6959, allocations: 433.5 kB / 0.8014 GB, free: 40.67 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.803e-06/0.6959, allocations: 0 / 0.8014 GB, free: 40.67 MB / 0.6544 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001131/0.697, allocations: 0.5173 MB / 0.8019 GB, free: 40.46 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.6971, allocations: 32.58 kB / 0.8019 GB, free: 40.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.6971, allocations: 2.438 kB / 0.8019 GB, free: 40.43 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/0.6973, allocations: 43.69 kB / 0.8019 GB, free: 40.42 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000366/0.6976, allocations: 78.67 kB / 0.802 GB, free: 40.42 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/0.6988, allocations: 1.609 MB / 0.8036 GB, free: 38.92 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003248/0.6991, allocations: 45 kB / 0.8036 GB, free: 38.9 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.6992, allocations: 15.78 kB / 0.8036 GB, free: 38.9 MB / 0.6544 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.0001429/0.6993, allocations: 196.5 kB / 0.8038 GB, free: 38.71 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.351e-05/0.6994, allocations: 24.72 kB / 0.8039 GB, free: 38.7 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.7005, allocations: 478.5 kB / 0.8043 GB, free: 38.52 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.7006, allocations: 13.11 kB / 0.8043 GB, free: 38.52 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.7006, allocations: 0.5625 kB / 0.8043 GB, free: 38.52 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.7006, allocations: 3.641 kB / 0.8043 GB, free: 38.52 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007263/0.7013, allocations: 0.5646 MB / 0.8049 GB, free: 38.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.7013, allocations: 1.656 kB / 0.8049 GB, free: 38.1 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004036/0.7017, allocations: 74.88 kB / 0.8049 GB, free: 38.1 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001332/0.7019, allocations: 43.94 kB / 0.805 GB, free: 38.08 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.7019, allocations: 8.203 kB / 0.805 GB, free: 38.07 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.7029, allocations: 1.52 MB / 0.8065 GB, free: 36.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.7029, allocations: 1.812 kB / 0.8065 GB, free: 36.62 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.704, allocations: 0.5363 MB / 0.807 GB, free: 36.34 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.7041, allocations: 132.7 kB / 0.8071 GB, free: 36.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.873e-05/0.7042, allocations: 11.98 kB / 0.8071 GB, free: 36.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003238/0.7045, allocations: 38.27 kB / 0.8072 GB, free: 36.2 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.7047, allocations: 30.58 kB / 0.8072 GB, free: 36.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/0.7047, allocations: 17.12 kB / 0.8072 GB, free: 36.19 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002118/0.7049, allocations: 170.2 kB / 0.8074 GB, free: 36.09 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.6e-07/0.7049, allocations: 0 / 0.8074 GB, free: 36.09 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000683/0.7056, allocations: 129.6 kB / 0.8075 GB, free: 36.07 MB / 0.6544 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.0001718/0.7058, allocations: 116.8 kB / 0.8076 GB, free: 35.98 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002169/0.708, allocations: 1.008 MB / 0.8086 GB, free: 35.44 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.708, allocations: 1.125 kB / 0.8086 GB, free: 35.44 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0006518/0.7086, allocations: 324.1 kB / 0.8089 GB, free: 35.28 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004874/0.7091, allocations: 53.02 kB / 0.809 GB, free: 35.26 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.7104, allocations: 0.6485 MB / 0.8096 GB, free: 34.88 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.7107, allocations: 0.7871 MB / 0.8104 GB, free: 34.16 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.7109, allocations: 31.31 kB / 0.8104 GB, free: 34.15 MB / 0.6544 GB Notification: Performance of SimCode: time 2.91e-07/0.7109, allocations: 0 / 0.8104 GB, free: 34.15 MB / 0.6544 GB Notification: Performance of Templates: time 0.01054/0.7214, allocations: 5.13 MB / 0.8154 GB, free: 33.84 MB / 0.6544 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)