Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter0.alpha_v|meter0.p.1.|meter0.v_norm|meter1.alpha_v|meter1.p.1.|meter1.v_norm|meter2.alpha_v|meter2.p.1.|meter2.v_norm",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability") translateModel(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter0.alpha_v|meter0.p.1.|meter0.v_norm|meter1.alpha_v|meter1.p.1.|meter1.v_norm|meter2.alpha_v|meter2.p.1.|meter2.v_norm",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008201/0.0008202, allocations: 93.58 kB / 16.3 MB, free: 5.996 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.000808/0.000808, allocations: 183.4 kB / 17.2 MB, free: 5.914 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.201/1.201, allocations: 223.2 MB / 241.1 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2532/0.2532, allocations: 38.07 MB / 330.3 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002755, allocations: 8 kB / 400 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2464, allocations: 59.16 MB / 459.1 MB, free: 30.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.VoltageStability): time 0.007732/0.2542, allocations: 9.309 MB / 468.4 MB, free: 23.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005665/0.2599, allocations: 3.497 MB / 471.9 MB, free: 21.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008291/0.2608, allocations: 70.34 kB / 472 MB, free: 21.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007683/0.2616, allocations: 306.1 kB / 472.3 MB, free: 21.09 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/AC3ph/Sensors.mo:213:5-214:73:writable] Warning: Conditional component ‘v_abc‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.001605/0.2632, allocations: 0.6231 MB / 472.9 MB, free: 20.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00206/0.2653, allocations: 0.7053 MB / 473.6 MB, free: 20.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.2666, allocations: 0.831 MB / 474.5 MB, free: 19.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001988/0.2686, allocations: 1.319 MB / 475.8 MB, free: 19.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009922/0.2696, allocations: 0.5109 MB / 476.3 MB, free: 19.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00087/0.2705, allocations: 0.6406 MB / 476.9 MB, free: 18.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.2706, allocations: 56.19 kB / 477 MB, free: 18.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007891/0.2714, allocations: 289.5 kB / 477.3 MB, free: 18.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006017/0.272, allocations: 0.5581 MB / 477.8 MB, free: 18.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002754/0.2723, allocations: 271.1 kB / 478.1 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.2733, allocations: 1.321 MB / 479.4 MB, free: 17.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.175e-06/0.2734, allocations: 1.219 kB / 479.4 MB, free: 17.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2734, allocations: 0 / 479.4 MB, free: 17.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.2734, allocations: 0 / 479.4 MB, free: 17.57 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.002239/0.2756, allocations: 1.402 MB / 480.8 MB, free: 16.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.2757, allocations: 13.12 kB / 480.8 MB, free: 16.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001685/0.2774, allocations: 295.9 kB / 481.1 MB, free: 16.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001643/0.279, allocations: 0.8251 MB / 481.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-05/0.2791, allocations: 89.45 kB / 482 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003338/0.2795, allocations: 148.8 kB / 482.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.2817, allocations: 1.822 MB / 484 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.151e-05/0.2818, allocations: 17.42 kB / 484 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.2819, allocations: 49.88 kB / 484.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002962/0.2822, allocations: 97.88 kB / 484.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.2841, allocations: 1.467 MB / 485.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006418/0.2905, allocations: 8.292 MB / 493.9 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009093/0.2915, allocations: 1.147 MB / 495.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.424e-05/0.2915, allocations: 24.69 kB / 495.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.2915, allocations: 51.14 kB / 495.1 MB, free: 3.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=82): time 2.775e-06/0.2916, allocations: 0 / 495.1 MB, free: 3.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.002868/0.2944, allocations: 2.378 MB / 497.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/0.2945, allocations: 89.77 kB / 497.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007091/0.2952, allocations: 0.8175 MB / 498.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/0.2952, allocations: 41.7 kB / 498.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004035/0.2957, allocations: 0.684 MB / 499.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.2959, allocations: 307.7 kB / 499.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.2959, allocations: 27.94 kB / 499.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.2961, allocations: 422.7 kB / 499.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005903/0.2967, allocations: 435.7 kB / 0.4886 GB, free: 13.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009197/0.2976, allocations: 0.9851 MB / 0.4896 GB, free: 12.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007897/0.2984, allocations: 0.6274 MB / 0.4902 GB, free: 11.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.2985, allocations: 8 kB / 0.4902 GB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002628/0.3011, allocations: 1.744 MB / 0.4919 GB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.3011, allocations: 14.34 kB / 0.4919 GB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001532/0.3027, allocations: 0.9733 MB / 0.4928 GB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007646/0.3034, allocations: 246.3 kB / 0.4931 GB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009356/0.3044, allocations: 315.5 kB / 0.4934 GB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004124/0.3085, allocations: 4.849 MB / 0.4981 GB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007745/0.3093, allocations: 60.41 kB / 0.4982 GB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.981e-05/0.3094, allocations: 72.06 kB / 0.4982 GB, free: 3.188 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000581/0.31, allocations: 425.1 kB / 0.4986 GB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.3101, allocations: 98.78 kB / 0.4987 GB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001338/0.3115, allocations: 0.9414 MB / 0.4997 GB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.3115, allocations: 11.98 kB / 0.4997 GB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.3115, allocations: 0 / 0.4997 GB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3115, allocations: 3.984 kB / 0.4997 GB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003291/0.3148, allocations: 2.111 MB / 0.5017 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3148, allocations: 8.125 kB / 0.5017 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008028/0.3156, allocations: 183.8 kB / 0.5019 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.804e-06/0.3156, allocations: 8 kB / 0.5019 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/0.3157, allocations: 23.98 kB / 0.5019 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.3157, allocations: 4 kB / 0.5019 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.3157, allocations: 4 kB / 0.502 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.3174, allocations: 1.459 MB / 0.5034 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.3176, allocations: 167.8 kB / 0.5035 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.3177, allocations: 24 kB / 0.5036 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003669/0.3181, allocations: 27.97 kB / 0.5036 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.223e-05/0.3182, allocations: 52.62 kB / 0.5036 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.033e-05/0.3182, allocations: 24 kB / 0.5037 GB, free: 13.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005744/0.3188, allocations: 0.5419 MB / 0.5042 GB, free: 12.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3188, allocations: 0 / 0.5042 GB, free: 12.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001013/0.3198, allocations: 296 kB / 0.5045 GB, free: 12.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 9 (line0.i[1],line0.i[2],line0.i[3],line1.i[1],line1.i[2],line1.i[3],line2.i[1],line2.i[2],line2.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001631/0.32, allocations: 119.1 kB / 0.5046 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001869/0.3219, allocations: 1.447 MB / 0.506 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3219, allocations: 0 / 0.506 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004873/0.3224, allocations: 396 kB / 0.5064 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006275/0.323, allocations: 169.8 kB / 0.5065 GB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003794/0.3268, allocations: 3.29 MB / 0.5098 GB, free: 7.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000806/0.3277, allocations: 1.272 MB / 0.511 GB, free: 5.789 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009128/0.3286, allocations: 416.7 kB / 0.5114 GB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001881/0.3288, allocations: 79.42 kB / 0.5115 GB, free: 5.301 MB / 382.1 MB Notification: Performance of SimCode: time 1.703e-06/0.3288, allocations: 0 / 0.5115 GB, free: 5.301 MB / 382.1 MB Notification: Performance of Templates: time 0.01701/0.3458, allocations: 9.821 MB / 0.5211 GB, free: 11.55 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.VoltageStability.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches