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.001332/0.001332, allocations: 107.2 kB / 16.41 MB, free: 6.492 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.001598/0.001598, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.483/1.483, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00235/0.00235, allocations: 291.6 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 1.003/1.003, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 91.86 kB / 0.6821 GB, free: 6.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4649/0.467, allocations: 86.98 MB / 0.767 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005365/0.4724, allocations: 3.265 MB / 0.7702 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003366/0.4758, allocations: 1.854 MB / 0.772 GB, free: 14.74 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.476, allocations: 4 kB / 0.772 GB, free: 14.74 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.4771, allocations: 297.8 kB / 0.7723 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0006008/0.4778, allocations: 207 kB / 0.7725 GB, free: 14.25 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008195/0.4786, allocations: 299.3 kB / 0.7728 GB, free: 13.95 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006/0.4792, allocations: 402.7 kB / 0.7732 GB, free: 13.56 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004153/0.4796, allocations: 204 kB / 0.7734 GB, free: 13.36 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003163/0.4799, allocations: 163.4 kB / 0.7735 GB, free: 13.2 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004563/0.4804, allocations: 199.3 kB / 0.7737 GB, free: 13 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.538e-05/0.4805, allocations: 24 kB / 0.7738 GB, free: 12.98 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004822/0.481, allocations: 239.5 kB / 0.774 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.4811, allocations: 111.8 kB / 0.7741 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.4813, allocations: 155.2 kB / 0.7742 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006611/0.482, allocations: 469.1 kB / 0.7747 GB, free: 12.03 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.482, allocations: 0 / 0.7747 GB, free: 12.03 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.302e-06/0.482, allocations: 0 / 0.7747 GB, free: 12.03 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.278e-05/0.482, allocations: 0 / 0.7747 GB, free: 12.03 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001204/0.4833, allocations: 0.5927 MB / 0.7753 GB, free: 11.38 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.4833, allocations: 12.02 kB / 0.7753 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008089/0.4841, allocations: 92.47 kB / 0.7754 GB, free: 11.28 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.4845, allocations: 288.3 kB / 0.7756 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.4846, allocations: 28.92 kB / 0.7757 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.4847, allocations: 32.73 kB / 0.7757 GB, free: 10.9 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006919/0.4854, allocations: 445.1 kB / 0.7761 GB, free: 10.43 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.4854, allocations: 7.922 kB / 0.7761 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.985e-05/0.4855, allocations: 12 kB / 0.7761 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001474/0.4856, allocations: 36.53 kB / 0.7762 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005603/0.4862, allocations: 349.9 kB / 0.7765 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002517/0.4887, allocations: 2.191 MB / 0.7787 GB, free: 7.645 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004392/0.4892, allocations: 267.5 kB / 0.7789 GB, free: 7.375 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/0.4894, allocations: 160.8 kB / 0.7791 GB, free: 7.215 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.4894, allocations: 4 kB / 0.7791 GB, free: 7.211 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.4895, allocations: 34.56 kB / 0.7791 GB, free: 7.168 MB / 0.545 GB Notification: Performance of pre-optimization done (n=22): time 1.974e-06/0.4895, allocations: 3.938 kB / 0.7791 GB, free: 7.164 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.001865/0.4914, allocations: 1.058 MB / 0.7801 GB, free: 6.039 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.4914, allocations: 59.27 kB / 0.7802 GB, free: 5.969 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000246/0.4917, allocations: 244.9 kB / 0.7804 GB, free: 5.727 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.4917, allocations: 29.7 kB / 0.7805 GB, free: 5.691 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.4918, allocations: 195.8 kB / 0.7806 GB, free: 5.496 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.318e-05/0.4919, allocations: 86.75 kB / 0.7807 GB, free: 5.41 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.492, allocations: 77.55 kB / 0.7808 GB, free: 5.328 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.4921, allocations: 338.8 kB / 0.7811 GB, free: 4.988 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.4924, allocations: 147.9 kB / 0.7813 GB, free: 4.844 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.4926, allocations: 229.6 kB / 0.7815 GB, free: 4.582 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000497/0.4931, allocations: 410.8 kB / 0.7819 GB, free: 4.148 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4931, allocations: 3.938 kB / 0.7819 GB, free: 4.145 MB / 0.545 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001071/0.4942, allocations: 0.5861 MB / 0.7824 GB, free: 3.551 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.4942, allocations: 4 kB / 0.7825 GB, free: 3.547 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.4943, allocations: 4 kB / 0.7825 GB, free: 3.543 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000662/0.4949, allocations: 188.8 kB / 0.7826 GB, free: 3.355 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.4952, allocations: 59.89 kB / 0.7827 GB, free: 3.297 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002856/0.4981, allocations: 2.496 MB / 0.7851 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/0.4984, allocations: 20.02 kB / 0.7852 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.4984, allocations: 20.09 kB / 0.7852 GB, free: 0.6172 MB / 0.545 GB 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.0001774/0.4986, allocations: 171.7 kB / 0.7853 GB, free: 452 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.857e-05/0.4987, allocations: 27.66 kB / 0.7854 GB, free: 424 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005383/0.4992, allocations: 351.6 kB / 0.7857 GB, free: 68 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.4993, allocations: 4.062 kB / 0.7857 GB, free: 64 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.4993, allocations: 4 kB / 0.7857 GB, free: 60 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4993, allocations: 0 / 0.7857 GB, free: 60 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.5003, allocations: 0.8043 MB / 0.7865 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5003, allocations: 4 kB / 0.7865 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004031/0.5007, allocations: 75.88 kB / 0.7866 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.5008, allocations: 4 kB / 0.7866 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.5008, allocations: 4 kB / 0.7866 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.5008, allocations: 8.062 kB / 0.7866 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.5008, allocations: 0 / 0.7866 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007239/0.5015, allocations: 0.6159 MB / 0.7872 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.5017, allocations: 124.8 kB / 0.7873 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.302e-05/0.5017, allocations: 8 kB / 0.7873 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.5019, allocations: 11.98 kB / 0.7873 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.758e-05/0.502, allocations: 27.91 kB / 0.7873 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.502, allocations: 4 kB / 0.7874 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001731/0.5022, allocations: 180.5 kB / 0.7875 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5022, allocations: 0 / 0.7875 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004167/0.5026, allocations: 88 kB / 0.7876 GB, free: 14.01 MB / 0.5606 GB 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.000169/0.5028, allocations: 111.2 kB / 0.7877 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008931/0.5037, allocations: 0.5257 MB / 0.7882 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.5037, allocations: 0 / 0.7882 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.5039, allocations: 154.8 kB / 0.7884 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004659/0.5044, allocations: 61.02 kB / 0.7884 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.5059, allocations: 0.8789 MB / 0.7893 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.5063, allocations: 0.8028 MB / 0.7901 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.9e-05/0.5064, allocations: 23.44 kB / 0.7901 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.5064, allocations: 0 / 0.7901 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of Templates: time 0.007101/0.5135, allocations: 4.455 MB / 0.7944 GB, free: 6.926 MB / 0.5606 GB 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)