Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.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.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008435/0.0008436, allocations: 92.39 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.0009834/0.0009834, allocations: 179.5 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.414/1.414, allocations: 223.3 MB / 241 MB, free: 5.289 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.377/2.377, allocations: 390.9 MB / 0.667 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004672/0.0004673, allocations: 15.98 kB / 0.8166 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6992/0.6997, allocations: 142.4 MB / 0.9557 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium): time 0.005219/0.705, allocations: 4.802 MB / 0.9604 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005024/0.7101, allocations: 3.742 MB / 0.9641 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004133/0.7105, allocations: 11.28 kB / 0.9641 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008909/0.7114, allocations: 230.6 kB / 0.9643 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.7127, allocations: 426.1 kB / 0.9647 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007034/0.7135, allocations: 250.6 kB / 0.9649 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001243/0.7147, allocations: 0.9174 MB / 0.9658 GB, free: 164 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001476/0.7162, allocations: 0.8226 MB / 0.9666 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006224/0.7168, allocations: 300.5 kB / 0.9669 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005248/0.7174, allocations: 268.8 kB / 0.9672 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.913e-05/0.7174, allocations: 16.94 kB / 0.9672 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000745/0.7182, allocations: 331.1 kB / 0.9675 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.7184, allocations: 136.4 kB / 0.9676 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002815/0.7187, allocations: 239.9 kB / 0.9679 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008698/0.7196, allocations: 0.6715 MB / 0.9685 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.7196, allocations: 1 kB / 0.9685 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.414e-06/0.7196, allocations: 0 / 0.9685 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.979e-06/0.7196, allocations: 0 / 0.9685 GB, free: 14.46 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001495/0.7211, allocations: 0.7347 MB / 0.9692 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.7212, allocations: 10.09 kB / 0.9693 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003191/0.7244, allocations: 0.7002 MB / 0.9699 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008618/0.7252, allocations: 462.1 kB / 0.9704 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.7253, allocations: 21.53 kB / 0.9704 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-05/0.7254, allocations: 32.47 kB / 0.9704 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001839/0.7272, allocations: 0.8477 MB / 0.9713 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.7273, allocations: 9.031 kB / 0.9713 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.298e-05/0.7273, allocations: 15.48 kB / 0.9713 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002325/0.7276, allocations: 62.3 kB / 0.9713 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002303/0.7299, allocations: 0.9494 MB / 0.9723 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004363/0.7343, allocations: 2.872 MB / 0.9751 GB, free: 9.637 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.7362, allocations: 0.5707 MB / 0.9756 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008491/0.737, allocations: 324.6 kB / 0.9759 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001217/0.7372, allocations: 91.91 kB / 0.976 GB, free: 9.078 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.7372, allocations: 39.92 kB / 0.9761 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=22): time 2.635e-06/0.7372, allocations: 0 / 0.9761 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36): time 0.0156/0.7528, allocations: 4.023 MB / 0.98 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.7529, allocations: 59.34 kB / 0.98 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005328/0.7534, allocations: 429.5 kB / 0.9805 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.176e-05/0.7535, allocations: 37.7 kB / 0.9805 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.7537, allocations: 236.2 kB / 0.9807 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.7538, allocations: 126.2 kB / 0.9808 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.207e-05/0.7539, allocations: 37.7 kB / 0.9809 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.754, allocations: 350.8 kB / 0.9812 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.7552, allocations: 440.5 kB / 0.9816 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.7563, allocations: 0.5126 MB / 0.9821 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/0.7585, allocations: 0.954 MB / 0.9831 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.7586, allocations: 0 / 0.9831 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.006197/0.7648, allocations: 1.904 MB / 0.9849 GB, free: 1 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.00011/0.7649, allocations: 144.1 kB / 0.9851 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.7649, allocations: 4 kB / 0.9851 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004619/0.7696, allocations: 1.02 MB / 0.9861 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007271/0.7703, allocations: 135.8 kB / 0.9862 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009988/0.7803, allocations: 6.188 MB / 0.9922 GB, free: 9.211 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.7814, allocations: 119.9 kB / 0.9923 GB, free: 9.094 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.96e-05/0.7815, allocations: 19.98 kB / 0.9924 GB, free: 9.074 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.7815, allocations: 6.344 kB / 0.9924 GB, free: 9.07 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005226/0.7867, allocations: 1.601 MB / 0.9939 GB, free: 7.461 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.7868, allocations: 0 / 0.9939 GB, free: 7.461 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003243/0.79, allocations: 0.7468 MB / 0.9947 GB, free: 6.707 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007695/0.7908, allocations: 143.8 kB / 0.9948 GB, free: 6.566 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007796/0.7986, allocations: 5.417 MB / 1 GB, free: 0.875 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009895/0.7996, allocations: 111.9 kB / 1 GB, free: 0.7656 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/0.7997, allocations: 15.94 kB / 1 GB, free: 0.75 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004792/0.8002, allocations: 347.7 kB / 1.001 GB, free: 412 kB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.8003, allocations: 39.53 kB / 1.001 GB, free: 372 kB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005705/0.806, allocations: 1.782 MB / 1.002 GB, free: 14.57 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.8061, allocations: 4 kB / 1.002 GB, free: 14.56 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.403e-06/0.8061, allocations: 4 kB / 1.002 GB, free: 14.56 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.403e-06/0.8061, allocations: 0 / 1.002 GB, free: 14.56 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006546/0.8126, allocations: 2.472 MB / 1.005 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.8127, allocations: 0 / 1.005 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004334/0.8131, allocations: 88 kB / 1.005 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00417/0.8173, allocations: 0.9458 MB / 1.006 GB, free: 10.97 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-05/0.8174, allocations: 8 kB / 1.006 GB, free: 10.96 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009033/0.8265, allocations: 5.876 MB / 1.011 GB, free: 4.816 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.8265, allocations: 0 / 1.011 GB, free: 4.816 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005386/0.8319, allocations: 1.72 MB / 1.013 GB, free: 3.062 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000365/0.8323, allocations: 192.6 kB / 1.013 GB, free: 2.855 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.8324, allocations: 11.94 kB / 1.013 GB, free: 2.844 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007365/0.8332, allocations: 91.86 kB / 1.013 GB, free: 2.754 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.8334, allocations: 31.89 kB / 1.013 GB, free: 2.723 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-05/0.8334, allocations: 15.98 kB / 1.014 GB, free: 2.707 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0005017/0.834, allocations: 339 kB / 1.014 GB, free: 2.379 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/0.834, allocations: 0 / 1.014 GB, free: 2.379 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001137/0.8351, allocations: 260 kB / 1.014 GB, free: 2.125 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * 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: 2 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002004/0.8353, allocations: 107.2 kB / 1.014 GB, free: 2.012 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.006815/0.8421, allocations: 2.521 MB / 1.017 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.8422, allocations: 8.125 kB / 1.017 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.002606/0.8448, allocations: 0.9615 MB / 1.018 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009026/0.8457, allocations: 122.9 kB / 1.018 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.8483, allocations: 1.478 MB / 1.019 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00058/0.8489, allocations: 0.9451 MB / 1.02 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.8491, allocations: 39.41 kB / 1.02 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of SimCode: time 7.31e-07/0.8491, allocations: 0 / 1.02 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of Templates: time 0.01853/0.8676, allocations: 13.82 MB / 1.034 GB, free: 14 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGridMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches