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.001021/0.001021, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 173 kB / 16.92 MB, free: 6.652 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.393/1.393, allocations: 223.3 MB / 241 MB, free: 5.332 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.384/2.384, allocations: 390.9 MB / 0.667 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003654, allocations: 12 kB / 0.8166 GB, free: 13.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.672/0.6723, allocations: 142.4 MB / 0.9557 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.003223/0.6756, allocations: 2.948 MB / 0.9586 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002745/0.6784, allocations: 1.993 MB / 0.9605 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.6786, allocations: 7.812 kB / 0.9605 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001918/0.6788, allocations: 36.8 kB / 0.9606 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005451/0.6793, allocations: 222 kB / 0.9608 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006693/0.68, allocations: 260.6 kB / 0.961 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005113/0.6805, allocations: 0.5723 MB / 0.9616 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007188/0.6813, allocations: 466.9 kB / 0.962 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.6815, allocations: 128.2 kB / 0.9622 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003705/0.6819, allocations: 199.6 kB / 0.9624 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.603e-05/0.6819, allocations: 12.38 kB / 0.9624 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000523/0.6825, allocations: 304.8 kB / 0.9627 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.6826, allocations: 100.9 kB / 0.9628 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.6827, allocations: 163.9 kB / 0.9629 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003802/0.6831, allocations: 376.5 kB / 0.9633 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.6831, allocations: 4 kB / 0.9633 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.433e-06/0.6831, allocations: 1 kB / 0.9633 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.982e-06/0.6831, allocations: 0 / 0.9633 GB, free: 2.113 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.0008776/0.684, allocations: 0.5319 MB / 0.9638 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.6841, allocations: 9.375 kB / 0.9638 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009676/0.685, allocations: 121.3 kB / 0.9639 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002796/0.6853, allocations: 274 kB / 0.9642 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.6854, allocations: 22.08 kB / 0.9642 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.6855, allocations: 33.66 kB / 0.9642 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006489/0.6861, allocations: 452 kB / 0.9647 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.6862, allocations: 5.531 kB / 0.9647 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.6862, allocations: 11.3 kB / 0.9647 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00014/0.6864, allocations: 46.67 kB / 0.9647 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005945/0.687, allocations: 367.9 kB / 0.9651 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002421/0.6894, allocations: 2.228 MB / 0.9672 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004411/0.6898, allocations: 265.8 kB / 0.9675 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002366/0.6901, allocations: 158.4 kB / 0.9677 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.6901, allocations: 1.688 kB / 0.9677 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.6902, allocations: 40.5 kB / 0.9677 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=22): time 1.843e-06/0.6902, allocations: 0 / 0.9677 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.001925/0.6921, allocations: 1.067 MB / 0.9687 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.6921, allocations: 54.28 kB / 0.9688 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.6925, allocations: 250.1 kB / 0.969 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.6925, allocations: 30.58 kB / 0.9691 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.6926, allocations: 194.8 kB / 0.9692 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.377e-05/0.6927, allocations: 81.75 kB / 0.9693 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-05/0.6928, allocations: 37.14 kB / 0.9694 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.6929, allocations: 340.9 kB / 0.9697 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002946/0.6932, allocations: 158.9 kB / 0.9698 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000355/0.6936, allocations: 241.3 kB / 0.9701 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005892/0.6942, allocations: 405.4 kB / 0.9704 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.6942, allocations: 4.688 kB / 0.9705 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001251/0.6954, allocations: 0.6059 MB / 0.971 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.6955, allocations: 6.562 kB / 0.9711 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.6955, allocations: 2.375 kB / 0.9711 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007148/0.6962, allocations: 187.5 kB / 0.9712 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/0.6965, allocations: 66.48 kB / 0.9713 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002788/0.6993, allocations: 2.302 MB / 0.9735 GB, free: 9.914 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004351/0.6998, allocations: 32.44 kB / 0.9736 GB, free: 9.895 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.043e-05/0.6998, allocations: 10.28 kB / 0.9736 GB, free: 9.895 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 (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.0002521/0.7001, allocations: 167.5 kB / 0.9737 GB, free: 9.742 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.845e-05/0.7002, allocations: 31.41 kB / 0.9738 GB, free: 9.723 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006367/0.7008, allocations: 355.1 kB / 0.9741 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.7008, allocations: 2.844 kB / 0.9741 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.7008, allocations: 1.469 kB / 0.9741 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.7009, allocations: 3.984 kB / 0.9741 GB, free: 9.508 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.702, allocations: 0.8062 MB / 0.9749 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.7021, allocations: 1.281 kB / 0.9749 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.7025, allocations: 77.03 kB / 0.975 GB, free: 8.871 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.715e-06/0.7025, allocations: 6.188 kB / 0.975 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.7025, allocations: 7.375 kB / 0.975 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.7025, allocations: 1.125 kB / 0.975 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.7025, allocations: 1.062 kB / 0.975 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008049/0.7034, allocations: 0.6193 MB / 0.9756 GB, free: 8.465 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.7035, allocations: 128.5 kB / 0.9757 GB, free: 8.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.414e-05/0.7036, allocations: 10.98 kB / 0.9757 GB, free: 8.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.7038, allocations: 15.42 kB / 0.9757 GB, free: 8.324 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.7039, allocations: 10.86 kB / 0.9758 GB, free: 8.32 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.7039, allocations: 4.969 kB / 0.9758 GB, free: 8.32 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000261/0.7042, allocations: 188.6 kB / 0.9759 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7042, allocations: 0 / 0.9759 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004808/0.7047, allocations: 97.69 kB / 0.976 GB, free: 8.172 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 (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.0001731/0.7048, allocations: 112.3 kB / 0.9761 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001013/0.7059, allocations: 0.5281 MB / 0.9767 GB, free: 7.754 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.7059, allocations: 0 / 0.9767 GB, free: 7.754 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.7061, allocations: 148.3 kB / 0.9768 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004976/0.7066, allocations: 57.39 kB / 0.9769 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.7084, allocations: 1.073 MB / 0.9779 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.7088, allocations: 0.7992 MB / 0.9787 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.7089, allocations: 23.41 kB / 0.9787 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of SimCode: time 3.4e-07/0.7089, allocations: 1.5 kB / 0.9787 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of Templates: time 0.008107/0.7171, allocations: 4.508 MB / 0.9831 GB, free: 2.457 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","/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