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.001843/0.001843, allocations: 112.9 kB / 16.42 MB, free: 6.441 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.001866/0.001866, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002163/0.002163, allocations: 297.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9528/0.9528, allocations: 169.3 MB / 0.499 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 95.84 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4882/0.4902, allocations: 86.98 MB / 0.7671 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.00535/0.4956, allocations: 3.009 MB / 0.77 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003046/0.4986, allocations: 1.737 MB / 0.7717 GB, free: 15.17 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002549/0.4989, allocations: 4 kB / 0.7717 GB, free: 15.16 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009552/0.4999, allocations: 239 kB / 0.7719 GB, free: 14.93 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0006124/0.5005, allocations: 199.1 kB / 0.7721 GB, free: 14.73 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008171/0.5013, allocations: 245.3 kB / 0.7723 GB, free: 14.5 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005801/0.5019, allocations: 402.7 kB / 0.7727 GB, free: 14.1 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004073/0.5023, allocations: 219.8 kB / 0.7729 GB, free: 13.89 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002385/0.5026, allocations: 151.5 kB / 0.7731 GB, free: 13.74 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003341/0.5029, allocations: 187.3 kB / 0.7733 GB, free: 13.56 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.498e-05/0.503, allocations: 28 kB / 0.7733 GB, free: 13.53 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004049/0.5034, allocations: 251.5 kB / 0.7735 GB, free: 13.29 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.5035, allocations: 103.7 kB / 0.7736 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.5037, allocations: 135.3 kB / 0.7738 GB, free: 13.05 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005844/0.5043, allocations: 481.1 kB / 0.7742 GB, free: 12.58 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.5043, allocations: 0 / 0.7742 GB, free: 12.58 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.874e-06/0.5043, allocations: 0 / 0.7742 GB, free: 12.58 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.5043, allocations: 0 / 0.7742 GB, free: 12.58 MB / 0.545 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.001283/0.5056, allocations: 0.6331 MB / 0.7748 GB, free: 11.89 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.5057, allocations: 8.031 kB / 0.7748 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006945/0.5064, allocations: 96.47 kB / 0.7749 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.5067, allocations: 292.7 kB / 0.7752 GB, free: 11.47 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.5068, allocations: 12.81 kB / 0.7752 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.983e-05/0.5068, allocations: 20.38 kB / 0.7752 GB, free: 11.44 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007972/0.5076, allocations: 422.8 kB / 0.7756 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.5077, allocations: 0 / 0.7756 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.5077, allocations: 8 kB / 0.7757 GB, free: 10.99 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.314e-05/0.5078, allocations: 24.36 kB / 0.7757 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009422/0.5087, allocations: 400.8 kB / 0.7761 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.5105, allocations: 1.607 MB / 0.7776 GB, free: 8.836 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.5117, allocations: 458.2 kB / 0.7781 GB, free: 8.371 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004196/0.5121, allocations: 196.4 kB / 0.7783 GB, free: 8.176 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001657/0.5123, allocations: 89.09 kB / 0.7783 GB, free: 8.07 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005404/0.5128, allocations: 262.2 kB / 0.7786 GB, free: 7.797 MB / 0.545 GB Notification: Performance of pre-optimization done (n=27): time 1.724e-06/0.5129, allocations: 4 kB / 0.7786 GB, free: 7.793 MB / 0.545 GB Notification: Performance of matching and sorting (n=28): time 0.001961/0.5148, allocations: 0.7478 MB / 0.7793 GB, free: 7.016 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.5149, allocations: 81.11 kB / 0.7794 GB, free: 6.918 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.5151, allocations: 221 kB / 0.7796 GB, free: 6.699 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.724e-05/0.5151, allocations: 33.69 kB / 0.7796 GB, free: 6.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.5153, allocations: 164.3 kB / 0.7798 GB, free: 6.496 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.295e-05/0.5153, allocations: 86.75 kB / 0.7799 GB, free: 6.41 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.5155, allocations: 69.59 kB / 0.7799 GB, free: 6.336 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.5156, allocations: 334.8 kB / 0.7803 GB, free: 6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004272/0.516, allocations: 177.1 kB / 0.7804 GB, free: 5.824 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004537/0.5165, allocations: 257 kB / 0.7807 GB, free: 5.543 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008389/0.5173, allocations: 460.1 kB / 0.7811 GB, free: 5.059 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.5174, allocations: 0 / 0.7811 GB, free: 5.059 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001109/0.5185, allocations: 0.5328 MB / 0.7816 GB, free: 4.512 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.5185, allocations: 29.7 kB / 0.7817 GB, free: 4.477 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.5185, allocations: 8.281 kB / 0.7817 GB, free: 4.469 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002277/0.5188, allocations: 40.81 kB / 0.7817 GB, free: 4.426 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003838/0.5192, allocations: 83.86 kB / 0.7818 GB, free: 4.344 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.5207, allocations: 1.611 MB / 0.7834 GB, free: 2.586 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.521, allocations: 47.8 kB / 0.7834 GB, free: 2.539 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.5211, allocations: 15.98 kB / 0.7834 GB, free: 2.523 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004722/0.5216, allocations: 276.4 kB / 0.7837 GB, free: 2.25 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000408/0.522, allocations: 233.9 kB / 0.7839 GB, free: 1.988 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008391/0.5228, allocations: 436.9 kB / 0.7843 GB, free: 1.523 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.085e-06/0.5228, allocations: 3.984 kB / 0.7843 GB, free: 1.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001104/0.5239, allocations: 0.511 MB / 0.7848 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.524, allocations: 41.69 kB / 0.7849 GB, free: 0.9453 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-06/0.524, allocations: 0 / 0.7849 GB, free: 0.9453 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000134/0.5241, allocations: 45.11 kB / 0.7849 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.5245, allocations: 79.86 kB / 0.785 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.5259, allocations: 1.603 MB / 0.7866 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002995/0.5262, allocations: 47.92 kB / 0.7866 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.5262, allocations: 15.94 kB / 0.7866 GB, free: 15 MB / 0.5606 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.0001953/0.5264, allocations: 215.4 kB / 0.7868 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.5265, allocations: 27.7 kB / 0.7869 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001088/0.5276, allocations: 468.9 kB / 0.7873 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.5276, allocations: 0 / 0.7873 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.5276, allocations: 4 kB / 0.7873 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.5277, allocations: 128.7 kB / 0.7874 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.5278, allocations: 11.98 kB / 0.7874 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003117/0.5281, allocations: 39.94 kB / 0.7875 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.5282, allocations: 23.97 kB / 0.7875 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001245/0.5295, allocations: 0.6157 MB / 0.7881 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001396/0.5309, allocations: 0.85 MB / 0.7889 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003806/0.5313, allocations: 178.2 kB / 0.7891 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001561/0.5314, allocations: 180.5 kB / 0.7893 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of Backend: time 4.01e-07/0.5314, allocations: 0 / 0.7893 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002224/0.5337, allocations: 1.025 MB / 0.7903 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of SimCode: time 0.001158/0.5348, allocations: 0.9562 MB / 0.7912 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of Templates: time 0.01208/0.5469, allocations: 7.228 MB / 0.7983 GB, free: 2.938 MB / 0.5606 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)