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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001572/0.001572, allocations: 104.2 kB / 16.27 MB, free: 5.98 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.001708/0.001708, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.376/1.376, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.23/2.23, allocations: 390.3 MB / 0.6653 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.53 kB / 0.8132 GB, free: 33.03 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2726, allocations: 140.4 MB / 0.9503 GB, free: 8.82 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005356/0.278, allocations: 3.269 MB / 0.9535 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003434/0.2815, allocations: 2.015 MB / 0.9554 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/0.2817, allocations: 7.938 kB / 0.9554 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.2828, allocations: 294.3 kB / 0.9557 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0006333/0.2834, allocations: 227 kB / 0.9559 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007499/0.2842, allocations: 291.3 kB / 0.9562 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005453/0.2847, allocations: 410.7 kB / 0.9566 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004213/0.2852, allocations: 200.2 kB / 0.9568 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003018/0.2855, allocations: 167.4 kB / 0.957 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/0.2859, allocations: 199.3 kB / 0.9571 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.499e-05/0.286, allocations: 24 kB / 0.9572 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005154/0.2865, allocations: 267.5 kB / 0.9574 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001565/0.2867, allocations: 115.7 kB / 0.9575 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.2869, allocations: 151.2 kB / 0.9577 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006768/0.2876, allocations: 486.8 kB / 0.9581 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2876, allocations: 0 / 0.9581 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2876, allocations: 0 / 0.9581 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.479e-05/0.2876, allocations: 0 / 0.9581 GB, free: 0.7227 MB / 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.001246/0.2889, allocations: 0.6081 MB / 0.9587 GB, free: 68 kB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.2889, allocations: 12.03 kB / 0.9587 GB, free: 56 kB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.29, allocations: 112.4 kB / 0.9589 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.2904, allocations: 276.5 kB / 0.9591 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.2904, allocations: 12.94 kB / 0.9591 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.2906, allocations: 40.62 kB / 0.9592 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007171/0.2913, allocations: 461 kB / 0.9596 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.2913, allocations: 3.938 kB / 0.9596 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.99e-05/0.2914, allocations: 12 kB / 0.9596 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001457/0.2915, allocations: 40.53 kB / 0.9597 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006358/0.2922, allocations: 365.9 kB / 0.96 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002634/0.2948, allocations: 2.226 MB / 0.9622 GB, free: 12.26 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.2952, allocations: 266.4 kB / 0.9624 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.2955, allocations: 160.8 kB / 0.9626 GB, free: 11.83 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.2955, allocations: 4 kB / 0.9626 GB, free: 11.82 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.2955, allocations: 34.56 kB / 0.9626 GB, free: 11.78 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.2955, allocations: 0 / 0.9626 GB, free: 11.78 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.001821/0.2974, allocations: 1.057 MB / 0.9637 GB, free: 10.66 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.2974, allocations: 55.41 kB / 0.9637 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.2977, allocations: 252.9 kB / 0.964 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.2978, allocations: 29.7 kB / 0.964 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.2979, allocations: 188 kB / 0.9642 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.698e-05/0.298, allocations: 90.73 kB / 0.9643 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.2981, allocations: 77.58 kB / 0.9643 GB, free: 9.938 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2982, allocations: 338.8 kB / 0.9646 GB, free: 9.598 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002801/0.2985, allocations: 155.9 kB / 0.9648 GB, free: 9.445 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.2989, allocations: 245.5 kB / 0.965 GB, free: 9.172 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005742/0.2995, allocations: 406.8 kB / 0.9654 GB, free: 8.742 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2995, allocations: 4 kB / 0.9654 GB, free: 8.738 MB / 0.7481 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001175/0.3007, allocations: 0.6004 MB / 0.966 GB, free: 8.129 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.3007, allocations: 10.17 kB / 0.966 GB, free: 8.121 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.547e-06/0.3007, allocations: 7.938 kB / 0.966 GB, free: 8.113 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006786/0.3014, allocations: 188.7 kB / 0.9662 GB, free: 7.926 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003325/0.3017, allocations: 59.89 kB / 0.9663 GB, free: 7.867 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/0.3046, allocations: 2.504 MB / 0.9687 GB, free: 5.219 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003996/0.305, allocations: 32.03 kB / 0.9687 GB, free: 5.188 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.3051, allocations: 8 kB / 0.9687 GB, free: 5.18 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.0001864/0.3052, allocations: 165.8 kB / 0.9689 GB, free: 5.008 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.916e-05/0.3053, allocations: 31.64 kB / 0.9689 GB, free: 4.977 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005817/0.3059, allocations: 351.5 kB / 0.9693 GB, free: 4.629 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3059, allocations: 0 / 0.9693 GB, free: 4.629 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.3059, allocations: 0 / 0.9693 GB, free: 4.629 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3059, allocations: 7.984 kB / 0.9693 GB, free: 4.621 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.307, allocations: 0.8179 MB / 0.9701 GB, free: 3.742 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.307, allocations: 0 / 0.9701 GB, free: 3.742 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003979/0.3074, allocations: 67.94 kB / 0.9701 GB, free: 3.676 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.3074, allocations: 4 kB / 0.9701 GB, free: 3.672 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.3075, allocations: 15.88 kB / 0.9702 GB, free: 3.656 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3075, allocations: 0 / 0.9702 GB, free: 3.656 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3075, allocations: 0 / 0.9702 GB, free: 3.656 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007402/0.3082, allocations: 0.624 MB / 0.9708 GB, free: 3.012 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.3084, allocations: 128.8 kB / 0.9709 GB, free: 2.867 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.99e-05/0.3084, allocations: 7.984 kB / 0.9709 GB, free: 2.859 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.3087, allocations: 11.98 kB / 0.9709 GB, free: 2.848 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/0.3087, allocations: 23.86 kB / 0.9709 GB, free: 2.824 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.3088, allocations: 8 kB / 0.9709 GB, free: 2.816 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002273/0.309, allocations: 188.5 kB / 0.9711 GB, free: 2.633 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.01e-07/0.309, allocations: 0 / 0.9711 GB, free: 2.633 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000436/0.3094, allocations: 96 kB / 0.9712 GB, free: 2.539 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.0001646/0.3096, allocations: 111.2 kB / 0.9713 GB, free: 2.422 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001005/0.3106, allocations: 0.5646 MB / 0.9719 GB, free: 1.844 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3106, allocations: 0 / 0.9719 GB, free: 1.844 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001992/0.3108, allocations: 152.5 kB / 0.972 GB, free: 1.695 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004679/0.3113, allocations: 64.28 kB / 0.9721 GB, free: 1.637 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.3129, allocations: 0.8694 MB / 0.9729 GB, free: 0.7266 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.3132, allocations: 0.7952 MB / 0.9737 GB, free: 15.9 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.3133, allocations: 31.42 kB / 0.9737 GB, free: 15.87 MB / 0.7637 GB Notification: Performance of SimCode: time 3.51e-07/0.3134, allocations: 0 / 0.9737 GB, free: 15.87 MB / 0.7637 GB Notification: Performance of Templates: time 0.007482/0.3208, allocations: 4.538 MB / 0.9782 GB, free: 11.34 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 -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