Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_9_Buildings.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.001145/0.001145, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.00121/0.00121, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.607/2.607, allocations: 390.3 MB / 0.6653 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.000351, allocations: 11.98 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8383/0.8387, allocations: 142.3 MB / 0.9535 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.003603/0.8424, allocations: 2.777 MB / 0.9562 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002755/0.8451, allocations: 1.717 MB / 0.9579 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/0.8454, allocations: 7.594 kB / 0.9579 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.8456, allocations: 34.64 kB / 0.9579 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005977/0.8462, allocations: 149.4 kB / 0.9581 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007813/0.847, allocations: 221.4 kB / 0.9583 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003963/0.8474, allocations: 237.9 kB / 0.9585 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000743/0.8481, allocations: 444.8 kB / 0.959 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.8483, allocations: 109.7 kB / 0.9591 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003155/0.8487, allocations: 137.7 kB / 0.9592 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.8487, allocations: 13.56 kB / 0.9592 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003436/0.849, allocations: 131.3 kB / 0.9593 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.8492, allocations: 95.64 kB / 0.9594 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.268e-05/0.8492, allocations: 75.7 kB / 0.9595 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003803/0.8496, allocations: 351.4 kB / 0.9598 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.8496, allocations: 0 / 0.9598 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8496, allocations: 0 / 0.9598 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.8497, allocations: 0 / 0.9598 GB, free: 3.305 MB / 0.7169 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.001039/0.8507, allocations: 0.5487 MB / 0.9604 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.8508, allocations: 9.375 kB / 0.9604 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008002/0.8516, allocations: 94 kB / 0.9605 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.8519, allocations: 276.6 kB / 0.9607 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.852, allocations: 18.59 kB / 0.9607 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.8521, allocations: 32.27 kB / 0.9608 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006673/0.8528, allocations: 436.6 kB / 0.9612 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.8528, allocations: 1.125 kB / 0.9612 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.42e-05/0.8529, allocations: 19.22 kB / 0.9612 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001517/0.853, allocations: 38.94 kB / 0.9612 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005723/0.8536, allocations: 348.6 kB / 0.9616 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.856, allocations: 2.2 MB / 0.9637 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.8565, allocations: 277.2 kB / 0.964 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.8565, allocations: 6.859 kB / 0.964 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.8565, allocations: 36.02 kB / 0.964 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=22): time 1.904e-06/0.8566, allocations: 0 / 0.964 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.001949/0.8585, allocations: 1.048 MB / 0.9651 GB, free: 15 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.8586, allocations: 53.47 kB / 0.9651 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.8589, allocations: 247.6 kB / 0.9653 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.8589, allocations: 27.67 kB / 0.9654 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.859, allocations: 194.2 kB / 0.9656 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.204e-05/0.8591, allocations: 85.53 kB / 0.9656 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/0.8591, allocations: 10.16 kB / 0.9656 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.8593, allocations: 328.6 kB / 0.966 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002571/0.8595, allocations: 150.1 kB / 0.9661 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.8599, allocations: 231.8 kB / 0.9663 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.8601, allocations: 187.5 kB / 0.9665 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.8602, allocations: 1.156 kB / 0.9665 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00119/0.8613, allocations: 0.5894 MB / 0.9671 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.8614, allocations: 6.688 kB / 0.9671 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.8614, allocations: 2.219 kB / 0.9671 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.8624, allocations: 190.8 kB / 0.9673 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000485/0.863, allocations: 60.98 kB / 0.9673 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004241/0.8672, allocations: 2.357 MB / 0.9696 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005059/0.8678, allocations: 16.3 kB / 0.9696 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.746e-05/0.8678, allocations: 14.88 kB / 0.9697 GB, free: 11.42 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003558/0.8682, allocations: 175.4 kB / 0.9698 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.17e-05/0.8683, allocations: 27.12 kB / 0.9698 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009042/0.8692, allocations: 358.4 kB / 0.9702 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.8692, allocations: 2.781 kB / 0.9702 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.8692, allocations: 0 / 0.9702 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.8692, allocations: 3.984 kB / 0.9702 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.8709, allocations: 0.8038 MB / 0.971 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.8709, allocations: 5.453 kB / 0.971 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005617/0.8715, allocations: 77.92 kB / 0.9711 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.117e-06/0.8715, allocations: 1.312 kB / 0.9711 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/0.8716, allocations: 11.83 kB / 0.9711 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.8716, allocations: 5.125 kB / 0.9711 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.8716, allocations: 1.219 kB / 0.9711 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.8728, allocations: 0.6306 MB / 0.9717 GB, free: 9.957 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.873, allocations: 131.8 kB / 0.9718 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.294e-05/0.8731, allocations: 7.562 kB / 0.9718 GB, free: 9.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.8734, allocations: 13.69 kB / 0.9718 GB, free: 9.816 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.8735, allocations: 22.88 kB / 0.9719 GB, free: 9.801 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-05/0.8735, allocations: 4.844 kB / 0.9719 GB, free: 9.801 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002504/0.8738, allocations: 183 kB / 0.972 GB, free: 9.676 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8738, allocations: 0 / 0.972 GB, free: 9.676 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007903/0.8746, allocations: 92.75 kB / 0.9721 GB, free: 9.66 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002101/0.8748, allocations: 108.6 kB / 0.9722 GB, free: 9.566 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001318/0.8762, allocations: 0.5189 MB / 0.9727 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.8762, allocations: 4.062 kB / 0.9727 GB, free: 9.246 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003185/0.8765, allocations: 147 kB / 0.9729 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.877, allocations: 50.08 kB / 0.9729 GB, free: 9.152 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/0.8793, allocations: 1.004 MB / 0.9739 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.8798, allocations: 0.8004 MB / 0.9747 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003105/0.8801, allocations: 77.81 kB / 0.9748 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.8802, allocations: 26.67 kB / 0.9748 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of SimCode: time 5.81e-07/0.8802, allocations: 0 / 0.9748 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of Templates: time 0.01088/0.8911, allocations: 3.647 MB / 0.9784 GB, free: 5.816 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches