Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.PQsource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource") translateModel(PowerSystems.Examples.AC3ph.Generation.PQsource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001335/0.001335, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 86.3 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1754/0.1754, allocations: 38 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.071e-05/2.053e-05, allocations: 8 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1488, allocations: 56.33 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3944/0.5432, allocations: 95.64 MB / 0.5494 GB, free: 15.3 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.5435, allocations: 83.95 kB / 0.5494 GB, free: 15.21 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03567/0.5792, allocations: 12.4 MB / 0.5615 GB, free: 2.672 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.5792, allocations: 0 / 0.5615 GB, free: 2.672 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.289e-05/0.5793, allocations: 15.98 kB / 0.5616 GB, free: 2.656 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0009881/0.5803, allocations: 0.6131 MB / 0.5622 GB, free: 1.996 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.5803, allocations: 12.03 kB / 0.5622 GB, free: 1.984 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005939/0.5809, allocations: 91.36 kB / 0.5623 GB, free: 1.895 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001982/0.5829, allocations: 0.8527 MB / 0.5631 GB, free: 1 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.5829, allocations: 12 kB / 0.5631 GB, free: 0.9883 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.583, allocations: 24 kB / 0.5631 GB, free: 0.9648 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004419/0.5835, allocations: 273.5 kB / 0.5634 GB, free: 0.6953 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005911/0.5841, allocations: 417 kB / 0.5638 GB, free: 272 kB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.5841, allocations: 3.953 kB / 0.5638 GB, free: 268 kB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.984e-05/0.5841, allocations: 0 / 0.5638 GB, free: 268 kB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-05/0.5842, allocations: 28.77 kB / 0.5638 GB, free: 236 kB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.5862, allocations: 1.638 MB / 0.5654 GB, free: 14.49 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002601/0.5865, allocations: 145.1 kB / 0.5656 GB, free: 14.33 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.5866, allocations: 101.8 kB / 0.5657 GB, free: 14.22 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.5867, allocations: 4 kB / 0.5657 GB, free: 14.22 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.5867, allocations: 34.56 kB / 0.5657 GB, free: 14.18 MB / 411.1 MB Notification: Performance of pre-optimization done (n=16): time 3.276e-06/0.5867, allocations: 0 / 0.5657 GB, free: 14.18 MB / 411.1 MB Notification: Performance of matching and sorting (n=17): time 0.001157/0.5879, allocations: 0.6808 MB / 0.5664 GB, free: 13.44 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.5879, allocations: 77.11 kB / 0.5664 GB, free: 13.34 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.5882, allocations: 242.2 kB / 0.5667 GB, free: 13.1 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.5882, allocations: 29.7 kB / 0.5667 GB, free: 13.07 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.5884, allocations: 251.7 kB / 0.5669 GB, free: 12.82 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.885e-05/0.5884, allocations: 63.09 kB / 0.567 GB, free: 12.75 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.289e-05/0.5885, allocations: 4.031 kB / 0.567 GB, free: 12.75 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.5886, allocations: 343.5 kB / 0.5673 GB, free: 12.41 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.5888, allocations: 88.25 kB / 0.5674 GB, free: 12.32 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.589, allocations: 193 kB / 0.5676 GB, free: 12.08 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.5892, allocations: 124.9 kB / 0.5677 GB, free: 11.96 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5892, allocations: 0 / 0.5677 GB, free: 11.96 MB / 411.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008013/0.59, allocations: 436.3 kB / 0.5681 GB, free: 11.53 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.59, allocations: 7.984 kB / 0.5681 GB, free: 11.52 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005582/0.5906, allocations: 286.2 kB / 0.5684 GB, free: 11.24 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004638/0.591, allocations: 132.8 kB / 0.5685 GB, free: 11.11 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.5913, allocations: 59.92 kB / 0.5686 GB, free: 11.05 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/0.5936, allocations: 2.091 MB / 0.5706 GB, free: 8.836 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.5937, allocations: 11.98 kB / 0.5706 GB, free: 8.824 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.5938, allocations: 8 kB / 0.5706 GB, free: 8.816 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.5939, allocations: 124.9 kB / 0.5708 GB, free: 8.688 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.5939, allocations: 23.72 kB / 0.5708 GB, free: 8.664 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004031/0.5944, allocations: 248.4 kB / 0.571 GB, free: 8.41 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.5944, allocations: 0 / 0.571 GB, free: 8.41 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5944, allocations: 4 kB / 0.571 GB, free: 8.406 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5944, allocations: 3.953 kB / 0.571 GB, free: 8.402 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009806/0.5954, allocations: 0.6654 MB / 0.5717 GB, free: 7.684 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.5954, allocations: 3.938 kB / 0.5717 GB, free: 7.68 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.5956, allocations: 31.98 kB / 0.5717 GB, free: 7.648 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.584e-05/0.5957, allocations: 36.83 kB / 0.5718 GB, free: 7.609 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.5957, allocations: 11.94 kB / 0.5718 GB, free: 7.598 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.5957, allocations: 0 / 0.5718 GB, free: 7.598 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.5958, allocations: 12 kB / 0.5718 GB, free: 7.586 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004776/0.5962, allocations: 454.3 kB / 0.5722 GB, free: 7.098 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.844e-05/0.5963, allocations: 104.9 kB / 0.5723 GB, free: 6.977 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.85e-05/0.5964, allocations: 4 kB / 0.5723 GB, free: 6.973 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.5965, allocations: 7.984 kB / 0.5723 GB, free: 6.965 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.5966, allocations: 15.88 kB / 0.5723 GB, free: 6.949 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.5966, allocations: 8 kB / 0.5723 GB, free: 6.941 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001629/0.5968, allocations: 188.6 kB / 0.5725 GB, free: 6.758 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5968, allocations: 0 / 0.5725 GB, free: 6.758 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004491/0.5972, allocations: 87.98 kB / 0.5726 GB, free: 6.672 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002076/0.5974, allocations: 125 kB / 0.5727 GB, free: 6.543 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0006271/0.5981, allocations: 373.6 kB / 0.5731 GB, free: 6.168 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5981, allocations: 0 / 0.5731 GB, free: 6.168 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001847/0.5983, allocations: 173.9 kB / 0.5732 GB, free: 5.977 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.5987, allocations: 61.62 kB / 0.5733 GB, free: 5.914 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.5998, allocations: 0.6452 MB / 0.5739 GB, free: 5.234 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004139/0.6002, allocations: 0.8574 MB / 0.5748 GB, free: 4.352 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001923/0.6004, allocations: 67.17 kB / 0.5748 GB, free: 4.285 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.126e-05/0.6005, allocations: 23.42 kB / 0.5749 GB, free: 4.262 MB / 411.1 MB Notification: Performance of SimCode: time 2.7e-07/0.6005, allocations: 4 kB / 0.5749 GB, free: 4.258 MB / 411.1 MB Notification: Performance of Templates: time 0.006762/0.6072, allocations: 3.387 MB / 0.5782 GB, free: 0.875 MB / 411.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PQsource.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches