Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009985/0.0009987, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008897/0.008897, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.482/1.482, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.699/2.699, allocations: 437.8 MB / 0.7121 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003648, allocations: 8 kB / 0.8728 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7979/0.7982, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004013/0.8023, allocations: 3.229 MB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002887/0.8052, allocations: 1.883 MB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.8054, allocations: 7.938 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.8056, allocations: 35.7 kB / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005452/0.8061, allocations: 191.2 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005721/0.8067, allocations: 227.5 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00047/0.8072, allocations: 0.4985 MB / 1.029 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007517/0.808, allocations: 402.6 kB / 1.029 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.8082, allocations: 139.4 kB / 1.029 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.8085, allocations: 171.3 kB / 1.03 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.297e-05/0.8085, allocations: 16 kB / 1.03 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004939/0.809, allocations: 335.4 kB / 1.03 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.8091, allocations: 79.78 kB / 1.03 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.8093, allocations: 157 kB / 1.03 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005593/0.8099, allocations: 488.4 kB / 1.031 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.8099, allocations: 0 / 1.031 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.933e-06/0.8099, allocations: 0 / 1.031 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.8099, allocations: 0 / 1.031 GB, free: 7.98 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001209/0.8111, allocations: 0.6098 MB / 1.031 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.8112, allocations: 8.031 kB / 1.031 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009947/0.8122, allocations: 124.4 kB / 1.031 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004009/0.8126, allocations: 279.7 kB / 1.032 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.8126, allocations: 12.81 kB / 1.032 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.466e-05/0.8127, allocations: 24.38 kB / 1.032 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009123/0.8136, allocations: 438.8 kB / 1.032 GB, free: 6.387 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.8136, allocations: 7.906 kB / 1.032 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.546e-05/0.8137, allocations: 12 kB / 1.032 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.119e-05/0.8138, allocations: 20.36 kB / 1.032 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.8148, allocations: 428.8 kB / 1.033 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.817, allocations: 1.638 MB / 1.034 GB, free: 4.16 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.8184, allocations: 0.4899 MB / 1.035 GB, free: 3.652 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004746/0.8189, allocations: 213.6 kB / 1.035 GB, free: 3.438 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001514/0.819, allocations: 93.09 kB / 1.035 GB, free: 3.328 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006159/0.8196, allocations: 283.6 kB / 1.035 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=27): time 1.923e-06/0.8197, allocations: 0 / 1.035 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.002126/0.8218, allocations: 0.8038 MB / 1.036 GB, free: 2.199 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.8219, allocations: 81.3 kB / 1.036 GB, free: 2.102 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002377/0.8221, allocations: 229 kB / 1.036 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.906e-05/0.8221, allocations: 33.7 kB / 1.036 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.8223, allocations: 168.3 kB / 1.036 GB, free: 1.656 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.957e-05/0.8224, allocations: 90.66 kB / 1.037 GB, free: 1.566 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.452e-05/0.8224, allocations: 33.7 kB / 1.037 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.8225, allocations: 334.8 kB / 1.037 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004719/0.823, allocations: 192.2 kB / 1.037 GB, free: 1.004 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.8235, allocations: 269.3 kB / 1.037 GB, free: 0.7109 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000981/0.8245, allocations: 490.4 kB / 1.038 GB, free: 200 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.8245, allocations: 0 / 1.038 GB, free: 200 kB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00128/0.8258, allocations: 0.5724 MB / 1.038 GB, free: 15.61 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.8259, allocations: 188.8 kB / 1.039 GB, free: 15.39 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.826, allocations: 0 / 1.039 GB, free: 15.39 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002598/0.8262, allocations: 44.81 kB / 1.039 GB, free: 15.34 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004484/0.8267, allocations: 91.86 kB / 1.039 GB, free: 15.25 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.8281, allocations: 1.516 MB / 1.04 GB, free: 13.59 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003771/0.8284, allocations: 51.8 kB / 1.04 GB, free: 13.54 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.664e-05/0.8285, allocations: 20.06 kB / 1.04 GB, free: 13.52 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.8285, allocations: 4 kB / 1.04 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001174/0.8297, allocations: 0.5106 MB / 1.041 GB, free: 13 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.8297, allocations: 3.984 kB / 1.041 GB, free: 13 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001337/0.8298, allocations: 40.83 kB / 1.041 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004097/0.8303, allocations: 99.73 kB / 1.041 GB, free: 12.86 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.8314, allocations: 1.477 MB / 1.042 GB, free: 11.24 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.8318, allocations: 55.86 kB / 1.042 GB, free: 11.19 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.8318, allocations: 16.17 kB / 1.042 GB, free: 11.17 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002423/0.8321, allocations: 233.6 kB / 1.043 GB, free: 10.93 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-05/0.8321, allocations: 31.64 kB / 1.043 GB, free: 10.9 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.8333, allocations: 0.4977 MB / 1.043 GB, free: 10.4 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.8333, allocations: 8 kB / 1.043 GB, free: 10.39 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.8333, allocations: 0 / 1.043 GB, free: 10.39 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.8333, allocations: 7.984 kB / 1.043 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006465/0.834, allocations: 0.5661 MB / 1.044 GB, free: 9.754 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.834, allocations: 4 kB / 1.044 GB, free: 9.75 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003919/0.8344, allocations: 88 kB / 1.044 GB, free: 9.664 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/0.8345, allocations: 36.83 kB / 1.044 GB, free: 9.625 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.8346, allocations: 4 kB / 1.044 GB, free: 9.621 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.8357, allocations: 1.417 MB / 1.045 GB, free: 8.07 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.8357, allocations: 0 / 1.045 GB, free: 8.07 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.8367, allocations: 0.5617 MB / 1.046 GB, free: 7.48 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.8369, allocations: 136.7 kB / 1.046 GB, free: 7.328 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.8369, allocations: 8 kB / 1.046 GB, free: 7.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/0.8373, allocations: 43.94 kB / 1.046 GB, free: 7.277 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.8374, allocations: 35.91 kB / 1.046 GB, free: 7.242 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.8374, allocations: 8 kB / 1.046 GB, free: 7.234 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002157/0.8376, allocations: 180.5 kB / 1.046 GB, free: 7.059 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8376, allocations: 0 / 1.046 GB, free: 7.059 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006612/0.8383, allocations: 135.9 kB / 1.046 GB, free: 6.926 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001855/0.8385, allocations: 115.2 kB / 1.046 GB, free: 6.805 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00193/0.8404, allocations: 1.028 MB / 1.047 GB, free: 5.727 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.8405, allocations: 0 / 1.047 GB, free: 5.727 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005957/0.8411, allocations: 338.8 kB / 1.048 GB, free: 5.383 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004778/0.8415, allocations: 55.78 kB / 1.048 GB, free: 5.332 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.8428, allocations: 0.7371 MB / 1.048 GB, free: 4.559 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.8432, allocations: 0.7917 MB / 1.049 GB, free: 3.742 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003411/0.8435, allocations: 98.19 kB / 1.049 GB, free: 3.648 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.8437, allocations: 27.44 kB / 1.049 GB, free: 3.621 MB / 0.795 GB Notification: Performance of SimCode: time 3.9e-07/0.8437, allocations: 0 / 1.049 GB, free: 3.621 MB / 0.795 GB Notification: Performance of Templates: time 0.008632/0.8523, allocations: 4.398 MB / 1.054 GB, free: 15.25 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches