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.001881/0.001881, allocations: 103.4 kB / 16.35 MB, free: 6.289 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.002187/0.002187, allocations: 191.6 kB / 17.29 MB, free: 5.863 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.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.17 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.337/2.337, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 66.06 kB / 0.814 GB, free: 32.61 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3025, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005823/0.3084, allocations: 3.268 MB / 0.9543 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00325/0.3117, allocations: 1.862 MB / 0.9561 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002324/0.3119, allocations: 4 kB / 0.9561 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.313, allocations: 294.7 kB / 0.9564 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0006208/0.3136, allocations: 223 kB / 0.9566 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008169/0.3145, allocations: 283.3 kB / 0.9569 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0006086/0.3151, allocations: 410.7 kB / 0.9573 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000474/0.3156, allocations: 194.2 kB / 0.9575 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003431/0.3159, allocations: 163.4 kB / 0.9576 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004828/0.3164, allocations: 195.3 kB / 0.9578 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.563e-05/0.3165, allocations: 24 kB / 0.9578 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004949/0.317, allocations: 239.6 kB / 0.9581 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.3172, allocations: 123.7 kB / 0.9582 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002483/0.3174, allocations: 147.3 kB / 0.9583 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007643/0.3182, allocations: 474.5 kB / 0.9588 GB, free: 180 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3182, allocations: 0 / 0.9588 GB, free: 180 kB / 0.7325 GB Notification: Performance of FrontEnd: time 2.154e-06/0.3182, allocations: 0 / 0.9588 GB, free: 180 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.47e-05/0.3182, allocations: 0 / 0.9588 GB, free: 180 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.001346/0.3196, allocations: 0.5977 MB / 0.9594 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3196, allocations: 12.03 kB / 0.9594 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00082/0.3205, allocations: 96.45 kB / 0.9595 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004439/0.3209, allocations: 280.5 kB / 0.9597 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.321, allocations: 12.94 kB / 0.9597 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.3211, allocations: 44.62 kB / 0.9598 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/0.3218, allocations: 449 kB / 0.9602 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.3219, allocations: 4 kB / 0.9602 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.3219, allocations: 4 kB / 0.9602 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001406/0.3221, allocations: 40.53 kB / 0.9603 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005845/0.3226, allocations: 349.9 kB / 0.9606 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002846/0.3255, allocations: 2.191 MB / 0.9627 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004835/0.326, allocations: 272.6 kB / 0.963 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002418/0.3263, allocations: 164.8 kB / 0.9632 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.3263, allocations: 7.984 kB / 0.9632 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.3263, allocations: 30.56 kB / 0.9632 GB, free: 11.31 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=22): time 1.703e-06/0.3263, allocations: 0 / 0.9632 GB, free: 11.31 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.001984/0.3283, allocations: 1.056 MB / 0.9642 GB, free: 10.19 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.3284, allocations: 55.41 kB / 0.9643 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003098/0.3287, allocations: 245 kB / 0.9645 GB, free: 9.871 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.3288, allocations: 33.64 kB / 0.9645 GB, free: 9.832 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.3289, allocations: 187.9 kB / 0.9647 GB, free: 9.645 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.575e-05/0.329, allocations: 90.73 kB / 0.9648 GB, free: 9.555 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.3292, allocations: 73.59 kB / 0.9649 GB, free: 9.477 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3293, allocations: 342.8 kB / 0.9652 GB, free: 9.133 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002601/0.3296, allocations: 151.9 kB / 0.9653 GB, free: 8.984 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/0.3299, allocations: 233.6 kB / 0.9656 GB, free: 8.719 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005706/0.3305, allocations: 406.8 kB / 0.966 GB, free: 8.289 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3305, allocations: 0 / 0.966 GB, free: 8.289 MB / 0.7481 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001141/0.3317, allocations: 0.5932 MB / 0.9665 GB, free: 7.688 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.3317, allocations: 4 kB / 0.9665 GB, free: 7.684 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.3317, allocations: 4 kB / 0.9665 GB, free: 7.68 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000738/0.3325, allocations: 188.8 kB / 0.9667 GB, free: 7.492 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.3328, allocations: 67.89 kB / 0.9668 GB, free: 7.426 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003114/0.3359, allocations: 2.496 MB / 0.9692 GB, free: 4.785 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.3362, allocations: 15.98 kB / 0.9692 GB, free: 4.77 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-05/0.3363, allocations: 19.98 kB / 0.9693 GB, free: 4.75 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.0002117/0.3365, allocations: 161.8 kB / 0.9694 GB, free: 4.582 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.226e-05/0.3366, allocations: 23.66 kB / 0.9694 GB, free: 4.559 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005627/0.3371, allocations: 353.6 kB / 0.9698 GB, free: 4.211 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3371, allocations: 8.062 kB / 0.9698 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.3372, allocations: 0 / 0.9698 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3372, allocations: 0 / 0.9698 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.3383, allocations: 0.8092 MB / 0.9706 GB, free: 3.332 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3383, allocations: 0 / 0.9706 GB, free: 3.332 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.3387, allocations: 71.94 kB / 0.9706 GB, free: 3.262 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.3387, allocations: 0 / 0.9706 GB, free: 3.262 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.3388, allocations: 11.94 kB / 0.9707 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.3388, allocations: 12.05 kB / 0.9707 GB, free: 3.238 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3388, allocations: 0 / 0.9707 GB, free: 3.238 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007596/0.3396, allocations: 0.6078 MB / 0.9713 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/0.3397, allocations: 124.9 kB / 0.9714 GB, free: 2.469 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.928e-05/0.3398, allocations: 15.89 kB / 0.9714 GB, free: 2.453 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.34, allocations: 7.984 kB / 0.9714 GB, free: 2.445 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.27e-05/0.3401, allocations: 27.86 kB / 0.9714 GB, free: 2.418 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.3401, allocations: 4 kB / 0.9714 GB, free: 2.414 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001881/0.3403, allocations: 180.5 kB / 0.9716 GB, free: 2.238 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.1e-07/0.3403, allocations: 0 / 0.9716 GB, free: 2.238 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004401/0.3408, allocations: 87.98 kB / 0.9717 GB, free: 2.152 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.0001813/0.3409, allocations: 115.2 kB / 0.9718 GB, free: 2.031 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0009519/0.3419, allocations: 0.5218 MB / 0.9723 GB, free: 1.496 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3419, allocations: 0 / 0.9723 GB, free: 1.496 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002178/0.3421, allocations: 152.9 kB / 0.9725 GB, free: 1.348 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.3426, allocations: 76.84 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.001558/0.3442, allocations: 0.8271 MB / 0.9733 GB, free: 432 kB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.3446, allocations: 0.8065 MB / 0.9741 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002031/0.3448, allocations: 70.92 kB / 0.9742 GB, free: 15.52 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.168e-05/0.3449, allocations: 23.42 kB / 0.9742 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of SimCode: time 4.31e-07/0.3449, allocations: 0 / 0.9742 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of Templates: time 0.008286/0.3532, allocations: 3.988 MB / 0.9781 GB, free: 11.53 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 gbode -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