Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 99.42 kB / 16.02 MB, free: 76 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.001688/0.001688, allocations: 185.5 kB / 16.92 MB, free: 6.688 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.474/1.474, allocations: 223.3 MB / 241 MB, free: 5.359 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.401/2.401, allocations: 390.9 MB / 0.667 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003756/0.0003756, allocations: 12 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6871/0.6875, allocations: 142.4 MB / 0.9557 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.004001/0.6915, allocations: 3.523 MB / 0.9591 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002606/0.6942, allocations: 1.733 MB / 0.9608 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002416/0.6944, allocations: 9.438 kB / 0.9608 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002226/0.6947, allocations: 55.81 kB / 0.9609 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000508/0.6952, allocations: 228.7 kB / 0.9611 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.6957, allocations: 238.7 kB / 0.9613 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006787/0.6964, allocations: 0.6986 MB / 0.962 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003942/0.6968, allocations: 365.1 kB / 0.9624 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002259/0.6971, allocations: 159.2 kB / 0.9625 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003744/0.6974, allocations: 224.3 kB / 0.9627 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.386e-05/0.6975, allocations: 16.16 kB / 0.9628 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000378/0.6979, allocations: 224.9 kB / 0.963 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.698, allocations: 115.6 kB / 0.9631 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001653/0.6982, allocations: 185 kB / 0.9633 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003894/0.6986, allocations: 372.3 kB / 0.9636 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.6986, allocations: 7.984 kB / 0.9636 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.402e-06/0.6986, allocations: 0 / 0.9636 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.29e-05/0.6986, allocations: 0 / 0.9636 GB, free: 1.711 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0009188/0.6996, allocations: 0.6039 MB / 0.9642 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.6996, allocations: 9.906 kB / 0.9642 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000551/0.7002, allocations: 86.56 kB / 0.9643 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.7005, allocations: 281.2 kB / 0.9646 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.7005, allocations: 24.64 kB / 0.9646 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.483e-05/0.7006, allocations: 27.5 kB / 0.9646 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007588/0.7014, allocations: 499.1 kB / 0.9651 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.7014, allocations: 5.406 kB / 0.9651 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.634e-05/0.7014, allocations: 15.42 kB / 0.9651 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.929e-05/0.7015, allocations: 35.36 kB / 0.9651 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007563/0.7022, allocations: 391.3 kB / 0.9655 GB, free: 340 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002186/0.7044, allocations: 2.045 MB / 0.9675 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006146/0.7051, allocations: 232.2 kB / 0.9677 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004307/0.7055, allocations: 169.9 kB / 0.9679 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.7056, allocations: 10.92 kB / 0.9679 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.7056, allocations: 35.92 kB / 0.9679 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=18): time 2.023e-06/0.7056, allocations: 0 / 0.9679 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18): time 0.001246/0.7069, allocations: 463.9 kB / 0.9684 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.7069, allocations: 53.06 kB / 0.9684 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/0.7072, allocations: 259.4 kB / 0.9687 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.7073, allocations: 30.7 kB / 0.9687 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.7074, allocations: 210 kB / 0.9689 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.727e-05/0.7075, allocations: 63.94 kB / 0.969 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/0.7075, allocations: 29.89 kB / 0.969 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.7077, allocations: 340.1 kB / 0.9693 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002664/0.7079, allocations: 95.25 kB / 0.9694 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/0.7083, allocations: 219.1 kB / 0.9696 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006237/0.7089, allocations: 328.4 kB / 0.9699 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.7089, allocations: 5.062 kB / 0.9699 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008732/0.7098, allocations: 384.6 kB / 0.9703 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.7099, allocations: 201.8 kB / 0.9705 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.71, allocations: 7.75 kB / 0.9705 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002128/0.7102, allocations: 34.7 kB / 0.9705 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.7105, allocations: 70.75 kB / 0.9706 GB, free: 12 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.7117, allocations: 1.329 MB / 0.9719 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.7121, allocations: 52.97 kB / 0.972 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.7121, allocations: 10.69 kB / 0.972 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.864e-06/0.7121, allocations: 3.594 kB / 0.972 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006627/0.7128, allocations: 306.9 kB / 0.9723 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.7128, allocations: 3.719 kB / 0.9723 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.873e-06/0.7128, allocations: 5.312 kB / 0.9723 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.7131, allocations: 76.17 kB / 0.9723 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.7131, allocations: 13.14 kB / 0.9724 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.7133, allocations: 47.19 kB / 0.9724 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.7134, allocations: 15.09 kB / 0.9724 GB, free: 10.41 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002322/0.7136, allocations: 242.6 kB / 0.9727 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.507e-05/0.7137, allocations: 24.31 kB / 0.9727 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.958e-05/0.7137, allocations: 37.45 kB / 0.9727 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.7138, allocations: 1.969 kB / 0.9727 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.7138, allocations: 4 kB / 0.9727 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.7138, allocations: 3.938 kB / 0.9727 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.715, allocations: 0.7739 MB / 0.9735 GB, free: 9.516 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.7151, allocations: 1.438 kB / 0.9735 GB, free: 9.516 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.7153, allocations: 49.59 kB / 0.9735 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001043/0.7154, allocations: 25.41 kB / 0.9735 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.7154, allocations: 1.719 kB / 0.9735 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001081/0.7165, allocations: 1.325 MB / 0.9748 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.7165, allocations: 5.375 kB / 0.9748 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008279/0.7173, allocations: 384.7 kB / 0.9752 GB, free: 7.852 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.7175, allocations: 117.2 kB / 0.9753 GB, free: 7.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.7175, allocations: 10 kB / 0.9753 GB, free: 7.723 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.7177, allocations: 25.38 kB / 0.9754 GB, free: 7.711 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.417e-05/0.7178, allocations: 18.36 kB / 0.9754 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.7178, allocations: 5.188 kB / 0.9754 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000186/0.718, allocations: 187.9 kB / 0.9756 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.71e-07/0.718, allocations: 0 / 0.9756 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008245/0.7188, allocations: 148.8 kB / 0.9757 GB, free: 7.527 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (18): * Single equations (assignments): 17 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001512/0.719, allocations: 100.7 kB / 0.9758 GB, free: 7.438 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00126/0.7203, allocations: 0.5096 MB / 0.9763 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.7203, allocations: 4.062 kB / 0.9763 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004002/0.7207, allocations: 230.1 kB / 0.9765 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005452/0.7213, allocations: 69.42 kB / 0.9766 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.7225, allocations: 0.7363 MB / 0.9773 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004316/0.7229, allocations: 0.8027 MB / 0.9781 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.514e-05/0.723, allocations: 26.41 kB / 0.9781 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.723, allocations: 3.938 kB / 0.9781 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of Templates: time 0.008054/0.7311, allocations: 4.742 MB / 0.9828 GB, free: 2.574 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches