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.001248/0.001248, allocations: 112.6 kB / 16.37 MB, free: 6 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.001211/0.001211, allocations: 196 kB / 17.31 MB, free: 5.613 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.578/1.578, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.424/2.424, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 61.11 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3323, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.007332/0.3396, allocations: 3.261 MB / 0.9543 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.006081/0.3458, allocations: 1.866 MB / 0.9561 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004083/0.3462, allocations: 7.938 kB / 0.9562 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001834/0.3481, allocations: 290.8 kB / 0.9564 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001204/0.3493, allocations: 215 kB / 0.9566 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.351, allocations: 287.3 kB / 0.9569 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0009418/0.3519, allocations: 406.7 kB / 0.9573 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006254/0.3526, allocations: 204.2 kB / 0.9575 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004237/0.353, allocations: 163.4 kB / 0.9576 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006958/0.3537, allocations: 199.3 kB / 0.9578 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.858e-05/0.3538, allocations: 24 kB / 0.9579 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009109/0.3548, allocations: 235.5 kB / 0.9581 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002444/0.355, allocations: 119.7 kB / 0.9582 GB, free: 0.7812 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.3553, allocations: 155.2 kB / 0.9583 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000968/0.3563, allocations: 470.5 kB / 0.9588 GB, free: 172 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3564, allocations: 0 / 0.9588 GB, free: 172 kB / 0.7325 GB Notification: Performance of FrontEnd: time 2.394e-06/0.3564, allocations: 0 / 0.9588 GB, free: 172 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.3564, allocations: 0 / 0.9588 GB, free: 172 kB / 0.7325 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.001789/0.3582, allocations: 0.5926 MB / 0.9594 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.3583, allocations: 12.03 kB / 0.9594 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/0.3597, allocations: 96.47 kB / 0.9595 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007171/0.3604, allocations: 276.5 kB / 0.9597 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.3605, allocations: 20.92 kB / 0.9598 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.3607, allocations: 36.64 kB / 0.9598 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.3618, allocations: 449.1 kB / 0.9602 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.3619, allocations: 0 / 0.9602 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.024e-05/0.3619, allocations: 11.98 kB / 0.9602 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002559/0.3622, allocations: 40.53 kB / 0.9603 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009791/0.3632, allocations: 349.9 kB / 0.9606 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004528/0.3678, allocations: 2.191 MB / 0.9627 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007905/0.3686, allocations: 270.4 kB / 0.963 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004122/0.369, allocations: 168.8 kB / 0.9632 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.3691, allocations: 4 kB / 0.9632 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.592e-05/0.3691, allocations: 34.56 kB / 0.9632 GB, free: 11.31 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=22): time 4.288e-06/0.3691, allocations: 0 / 0.9632 GB, free: 11.31 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.003249/0.3724, allocations: 1.052 MB / 0.9642 GB, free: 10.19 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.3725, allocations: 55.41 kB / 0.9643 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.3729, allocations: 245 kB / 0.9645 GB, free: 9.871 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.904e-05/0.373, allocations: 33.7 kB / 0.9646 GB, free: 9.832 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002011/0.3732, allocations: 187.9 kB / 0.9647 GB, free: 9.645 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.000189/0.3734, allocations: 86.75 kB / 0.9648 GB, free: 9.559 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/0.3737, allocations: 77.59 kB / 0.9649 GB, free: 9.477 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002026/0.3739, allocations: 338.8 kB / 0.9652 GB, free: 9.137 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004622/0.3744, allocations: 151.9 kB / 0.9654 GB, free: 8.988 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005011/0.3749, allocations: 237.5 kB / 0.9656 GB, free: 8.719 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.3759, allocations: 402.9 kB / 0.966 GB, free: 8.293 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.376, allocations: 0 / 0.966 GB, free: 8.293 MB / 0.7481 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002112/0.3781, allocations: 0.5972 MB / 0.9665 GB, free: 7.688 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.3781, allocations: 11.98 kB / 0.9666 GB, free: 7.676 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3782, allocations: 0 / 0.9666 GB, free: 7.676 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/0.3795, allocations: 188.7 kB / 0.9667 GB, free: 7.488 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.3801, allocations: 59.91 kB / 0.9668 GB, free: 7.43 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005623/0.3857, allocations: 2.5 MB / 0.9692 GB, free: 4.789 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005935/0.3863, allocations: 15.98 kB / 0.9693 GB, free: 4.773 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.978e-05/0.3864, allocations: 12 kB / 0.9693 GB, free: 4.762 MB / 0.7481 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.0003415/0.3868, allocations: 161.8 kB / 0.9694 GB, free: 4.594 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.3869, allocations: 27.66 kB / 0.9694 GB, free: 4.566 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.388, allocations: 352.5 kB / 0.9698 GB, free: 4.219 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.388, allocations: 4 kB / 0.9698 GB, free: 4.215 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.388, allocations: 4.062 kB / 0.9698 GB, free: 4.211 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.388, allocations: 3.984 kB / 0.9698 GB, free: 4.207 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.3902, allocations: 0.8142 MB / 0.9706 GB, free: 3.332 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.3902, allocations: 3.984 kB / 0.9706 GB, free: 3.328 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007374/0.3909, allocations: 67.89 kB / 0.9707 GB, free: 3.262 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-05/0.391, allocations: 4 kB / 0.9707 GB, free: 3.258 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.391, allocations: 15.92 kB / 0.9707 GB, free: 3.242 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.391, allocations: 0 / 0.9707 GB, free: 3.242 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.391, allocations: 4.062 kB / 0.9707 GB, free: 3.238 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.3926, allocations: 0.6123 MB / 0.9713 GB, free: 2.605 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002765/0.3929, allocations: 132.9 kB / 0.9714 GB, free: 2.457 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.207e-05/0.393, allocations: 8 kB / 0.9714 GB, free: 2.449 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003994/0.3934, allocations: 15.97 kB / 0.9714 GB, free: 2.434 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/0.3935, allocations: 19.92 kB / 0.9714 GB, free: 2.414 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.3936, allocations: 8 kB / 0.9715 GB, free: 2.406 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000342/0.3939, allocations: 184.5 kB / 0.9716 GB, free: 2.227 MB / 0.7481 GB Notification: Performance of sort global known variables: time 5.31e-07/0.3939, allocations: 0 / 0.9716 GB, free: 2.227 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008122/0.3948, allocations: 84 kB / 0.9717 GB, free: 2.145 MB / 0.7481 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.0002521/0.395, allocations: 107.2 kB / 0.9718 GB, free: 2.031 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001784/0.3968, allocations: 0.5258 MB / 0.9723 GB, free: 1.492 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/0.3969, allocations: 4 kB / 0.9723 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004184/0.3973, allocations: 151.8 kB / 0.9725 GB, free: 1.34 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008379/0.3982, allocations: 63.69 kB / 0.9725 GB, free: 1.281 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.401, allocations: 0.8208 MB / 0.9733 GB, free: 436 kB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006785/0.4018, allocations: 0.8028 MB / 0.9741 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004346/0.4022, allocations: 74.91 kB / 0.9742 GB, free: 15.52 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.4024, allocations: 27.42 kB / 0.9742 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of SimCode: time 1.703e-06/0.4024, allocations: 0 / 0.9742 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of Templates: time 0.01596/0.4184, allocations: 3.987 MB / 0.9781 GB, free: 11.54 MB / 0.7637 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches