Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009896/0.0009896, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001107/0.001107, allocations: 168.7 kB / 15.95 MB, free: 204 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.486/1.486, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.649/2.649, allocations: 437.7 MB / 0.7117 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 8 kB / 0.8722 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.761/0.7613, allocations: 153.8 MB / 1.022 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.003873/0.7653, allocations: 2.837 MB / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002881/0.7682, allocations: 1.746 MB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.7684, allocations: 4 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002282/0.7686, allocations: 43.64 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005265/0.7691, allocations: 167.2 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006033/0.7697, allocations: 219.5 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005154/0.7703, allocations: 474.5 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007737/0.7711, allocations: 437.2 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.7713, allocations: 135.5 kB / 1.028 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003805/0.7717, allocations: 183.4 kB / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.818e-05/0.7717, allocations: 12 kB / 1.028 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003071/0.772, allocations: 135.8 kB / 1.029 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.7722, allocations: 107.7 kB / 1.029 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.043e-05/0.7722, allocations: 77.52 kB / 1.029 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.7726, allocations: 349.1 kB / 1.029 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.7727, allocations: 0 / 1.029 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7727, allocations: 0 / 1.029 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.7727, allocations: 0 / 1.029 GB, free: 9.121 MB / 0.7794 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.001013/0.7737, allocations: 0.5418 MB / 1.03 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.7737, allocations: 8.562 kB / 1.03 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007114/0.7745, allocations: 91.53 kB / 1.03 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.7748, allocations: 276.4 kB / 1.03 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.7749, allocations: 20.52 kB / 1.03 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.775, allocations: 31.98 kB / 1.03 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006709/0.7757, allocations: 445.1 kB / 1.03 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.7757, allocations: 3.906 kB / 1.03 GB, free: 7.598 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.7758, allocations: 15.98 kB / 1.031 GB, free: 7.582 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000132/0.7759, allocations: 40.47 kB / 1.031 GB, free: 7.543 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000537/0.7765, allocations: 346 kB / 1.031 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/0.7789, allocations: 2.203 MB / 1.033 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004247/0.7793, allocations: 271 kB / 1.033 GB, free: 4.531 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.7795, allocations: 162.1 kB / 1.033 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.7796, allocations: 4.188 kB / 1.033 GB, free: 4.367 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.7796, allocations: 34.75 kB / 1.033 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=22): time 2.064e-06/0.7796, allocations: 0 / 1.033 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.001819/0.7814, allocations: 1.044 MB / 1.034 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.7815, allocations: 55.41 kB / 1.035 GB, free: 3.148 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.7817, allocations: 252.8 kB / 1.035 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.7818, allocations: 29.7 kB / 1.035 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.7819, allocations: 184 kB / 1.035 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.876e-05/0.782, allocations: 94.67 kB / 1.035 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.049e-05/0.782, allocations: 12 kB / 1.035 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.7821, allocations: 334.8 kB / 1.035 GB, free: 2.234 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/0.7824, allocations: 155.8 kB / 1.036 GB, free: 2.082 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002847/0.7827, allocations: 241.5 kB / 1.036 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.7829, allocations: 181.2 kB / 1.036 GB, free: 1.633 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.7829, allocations: 4 kB / 1.036 GB, free: 1.629 MB / 0.7794 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001061/0.784, allocations: 0.5857 MB / 1.037 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.784, allocations: 4 kB / 1.037 GB, free: 1.031 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.7841, allocations: 8.25 kB / 1.037 GB, free: 1.023 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000653/0.7847, allocations: 180.7 kB / 1.037 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.785, allocations: 71.89 kB / 1.037 GB, free: 0.7734 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002843/0.7879, allocations: 2.288 MB / 1.039 GB, free: 14.35 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.7881, allocations: 16.02 kB / 1.039 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.7882, allocations: 16 kB / 1.039 GB, free: 14.32 MB / 0.795 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.0001801/0.7884, allocations: 177.7 kB / 1.039 GB, free: 14.13 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.027e-05/0.7884, allocations: 23.72 kB / 1.039 GB, free: 14.11 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000569/0.789, allocations: 353.7 kB / 1.04 GB, free: 13.76 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.789, allocations: 4 kB / 1.04 GB, free: 13.76 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.789, allocations: 3.953 kB / 1.04 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.789, allocations: 3.984 kB / 1.04 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.7901, allocations: 0.8005 MB / 1.04 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.7901, allocations: 4.062 kB / 1.04 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.7905, allocations: 75.89 kB / 1.04 GB, free: 12.81 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.7905, allocations: 3.984 kB / 1.04 GB, free: 12.81 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.7906, allocations: 11.95 kB / 1.04 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.7906, allocations: 0 / 1.04 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.7906, allocations: 0 / 1.04 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007621/0.7913, allocations: 0.6102 MB / 1.041 GB, free: 12.16 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.7915, allocations: 128.8 kB / 1.041 GB, free: 12.02 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.146e-05/0.7915, allocations: 8 kB / 1.041 GB, free: 12.01 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.7917, allocations: 15.94 kB / 1.041 GB, free: 12 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.7918, allocations: 15.92 kB / 1.041 GB, free: 11.98 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.7918, allocations: 12 kB / 1.041 GB, free: 11.97 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001853/0.792, allocations: 176.5 kB / 1.041 GB, free: 11.8 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.792, allocations: 0 / 1.041 GB, free: 11.8 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004301/0.7924, allocations: 88 kB / 1.041 GB, free: 11.71 MB / 0.795 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.0001819/0.7926, allocations: 115.2 kB / 1.042 GB, free: 11.59 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009161/0.7936, allocations: 0.5222 MB / 1.042 GB, free: 11.06 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.7936, allocations: 4.125 kB / 1.042 GB, free: 11.05 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002134/0.7938, allocations: 153.9 kB / 1.042 GB, free: 10.91 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004559/0.7943, allocations: 48.34 kB / 1.042 GB, free: 10.86 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.7958, allocations: 1.013 MB / 1.043 GB, free: 9.812 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.7962, allocations: 0.7951 MB / 1.044 GB, free: 8.992 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000212/0.7964, allocations: 74.89 kB / 1.044 GB, free: 8.922 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.014e-05/0.7965, allocations: 23.44 kB / 1.044 GB, free: 8.898 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.7965, allocations: 0 / 1.044 GB, free: 8.898 MB / 0.795 GB Notification: Performance of Templates: time 0.007342/0.8038, allocations: 3.649 MB / 1.048 GB, free: 5.277 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches