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.006867/0.006867, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001671/0.001671, allocations: 193.9 kB / 16.67 MB, free: 5.969 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002119/0.00212, allocations: 297.5 kB / 290.8 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.957/0.957, allocations: 169.3 MB / 0.4983 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 87.86 kB / 0.6814 GB, free: 7.008 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4218/0.4234, allocations: 86.98 MB / 0.7664 GB, free: 3.984 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.006108/0.4296, allocations: 3.246 MB / 0.7696 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004028/0.4336, allocations: 1.854 MB / 0.7714 GB, free: 14.86 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002361/0.4339, allocations: 11.94 kB / 0.7714 GB, free: 14.85 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.4352, allocations: 290.8 kB / 0.7717 GB, free: 14.56 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0007225/0.4359, allocations: 215 kB / 0.7719 GB, free: 14.35 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009697/0.4369, allocations: 287.3 kB / 0.7721 GB, free: 14.07 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000631/0.4375, allocations: 410.7 kB / 0.7725 GB, free: 13.67 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004826/0.438, allocations: 206.2 kB / 0.7727 GB, free: 13.47 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002644/0.4383, allocations: 167.4 kB / 0.7729 GB, free: 13.31 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000445/0.4388, allocations: 199.3 kB / 0.7731 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.552e-05/0.4389, allocations: 24 kB / 0.7731 GB, free: 13.09 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005493/0.4394, allocations: 235.5 kB / 0.7733 GB, free: 12.86 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.4396, allocations: 115.7 kB / 0.7734 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.4398, allocations: 151.2 kB / 0.7736 GB, free: 12.6 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0007785/0.4406, allocations: 472.1 kB / 0.774 GB, free: 12.14 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.4406, allocations: 0 / 0.774 GB, free: 12.14 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.923e-06/0.4406, allocations: 0 / 0.774 GB, free: 12.14 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.835e-05/0.4407, allocations: 4 kB / 0.774 GB, free: 12.14 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.001445/0.4421, allocations: 0.596 MB / 0.7746 GB, free: 11.49 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.4422, allocations: 8.031 kB / 0.7746 GB, free: 11.48 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/0.4433, allocations: 100.6 kB / 0.7747 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005253/0.4438, allocations: 288.3 kB / 0.775 GB, free: 11.06 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/0.4439, allocations: 20.92 kB / 0.775 GB, free: 11.04 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002066/0.4441, allocations: 28.75 kB / 0.775 GB, free: 11.02 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009272/0.445, allocations: 449.1 kB / 0.7755 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.4451, allocations: 0 / 0.7755 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.763e-05/0.4451, allocations: 11.98 kB / 0.7755 GB, free: 10.53 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001727/0.4453, allocations: 36.53 kB / 0.7755 GB, free: 10.5 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007782/0.4461, allocations: 349.9 kB / 0.7758 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002343/0.4484, allocations: 2.203 MB / 0.778 GB, free: 7.754 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004205/0.4489, allocations: 270.4 kB / 0.7783 GB, free: 7.48 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.4491, allocations: 164.8 kB / 0.7784 GB, free: 7.316 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.4491, allocations: 4 kB / 0.7784 GB, free: 7.312 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.4492, allocations: 34.56 kB / 0.7785 GB, free: 7.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=22): time 2.104e-06/0.4492, allocations: 3.938 kB / 0.7785 GB, free: 7.266 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.001784/0.451, allocations: 1.055 MB / 0.7795 GB, free: 6.145 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.451, allocations: 67.19 kB / 0.7796 GB, free: 6.066 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.4513, allocations: 249 kB / 0.7798 GB, free: 5.82 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.4513, allocations: 29.7 kB / 0.7798 GB, free: 5.785 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.4514, allocations: 192.4 kB / 0.78 GB, free: 5.594 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.086e-05/0.4515, allocations: 87.28 kB / 0.7801 GB, free: 5.508 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.4517, allocations: 77.59 kB / 0.7802 GB, free: 5.426 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.4518, allocations: 338.8 kB / 0.7805 GB, free: 5.086 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/0.452, allocations: 151.9 kB / 0.7806 GB, free: 4.938 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.4523, allocations: 237.6 kB / 0.7809 GB, free: 4.668 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005053/0.4528, allocations: 394.9 kB / 0.7812 GB, free: 4.25 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4528, allocations: 0 / 0.7812 GB, free: 4.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001124/0.454, allocations: 0.5977 MB / 0.7818 GB, free: 3.645 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.454, allocations: 6.5 kB / 0.7818 GB, free: 3.641 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.454, allocations: 4.312 kB / 0.7818 GB, free: 3.637 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007082/0.4547, allocations: 192.6 kB / 0.782 GB, free: 3.445 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002935/0.455, allocations: 63.89 kB / 0.7821 GB, free: 3.383 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.458, allocations: 2.5 MB / 0.7845 GB, free: 0.7383 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.4583, allocations: 16.02 kB / 0.7845 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.4583, allocations: 16 kB / 0.7845 GB, free: 0.707 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.0001695/0.4585, allocations: 172.2 kB / 0.7847 GB, free: 0.5312 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.4586, allocations: 27.8 kB / 0.7847 GB, free: 0.5039 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005377/0.4591, allocations: 347.6 kB / 0.7851 GB, free: 164 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.4591, allocations: 7.984 kB / 0.7851 GB, free: 156 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.4591, allocations: 0 / 0.7851 GB, free: 156 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4591, allocations: 4 kB / 0.7851 GB, free: 152 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.4602, allocations: 0.8121 MB / 0.7859 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4602, allocations: 4 kB / 0.7859 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003912/0.4606, allocations: 71.88 kB / 0.7859 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.388e-06/0.4606, allocations: 4 kB / 0.7859 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.4607, allocations: 4 kB / 0.7859 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.4607, allocations: 4 kB / 0.7859 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4607, allocations: 0 / 0.7859 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007333/0.4614, allocations: 0.6166 MB / 0.7866 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.4616, allocations: 132.9 kB / 0.7867 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/0.4616, allocations: 8.094 kB / 0.7867 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.4618, allocations: 7.984 kB / 0.7867 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.369e-05/0.4619, allocations: 23.91 kB / 0.7867 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.4619, allocations: 4 kB / 0.7867 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001688/0.4621, allocations: 188.5 kB / 0.7869 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4621, allocations: 0 / 0.7869 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004041/0.4625, allocations: 91.94 kB / 0.787 GB, free: 14.09 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.0001503/0.4626, allocations: 107.2 kB / 0.7871 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009102/0.4636, allocations: 0.5338 MB / 0.7876 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4636, allocations: 0 / 0.7876 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002045/0.4638, allocations: 151.8 kB / 0.7878 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.4642, allocations: 57.91 kB / 0.7878 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.4657, allocations: 0.8436 MB / 0.7886 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.466, allocations: 0.7989 MB / 0.7894 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002041/0.4662, allocations: 78.89 kB / 0.7895 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.065e-05/0.4663, allocations: 23.44 kB / 0.7895 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.4663, allocations: 0 / 0.7895 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of Templates: time 0.007664/0.474, allocations: 4.057 MB / 0.7935 GB, free: 7.387 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)