Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 94.7 kB / 16.3 MB, free: 5.992 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.001613/0.001613, allocations: 183.6 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.323/1.323, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3028/0.3028, allocations: 38.06 MB / 330.3 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00028/0.00028, allocations: 12 kB / 400 MB, free: 9.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2987, allocations: 59.16 MB / 459.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007957/0.3067, allocations: 7.836 MB / 467 MB, free: 24.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004913/0.3116, allocations: 2.707 MB / 469.7 MB, free: 22.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008827/0.3125, allocations: 54.69 kB / 469.7 MB, free: 22.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006861/0.3132, allocations: 260.3 kB / 470 MB, free: 22.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001604/0.3149, allocations: 493.9 kB / 470.5 MB, free: 22.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001627/0.3165, allocations: 456.6 kB / 470.9 MB, free: 21.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001256/0.3178, allocations: 0.6796 MB / 471.6 MB, free: 21.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001628/0.3194, allocations: 1.003 MB / 472.6 MB, free: 21.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008894/0.3203, allocations: 416.6 kB / 473 MB, free: 20.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006635/0.321, allocations: 455 kB / 473.4 MB, free: 20.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.439e-05/0.3211, allocations: 41.41 kB / 473.5 MB, free: 20.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005498/0.3216, allocations: 182.5 kB / 473.7 MB, free: 20.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004768/0.3221, allocations: 440.5 kB / 474.1 MB, free: 20.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002184/0.3224, allocations: 205.8 kB / 474.3 MB, free: 20.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.3235, allocations: 0.989 MB / 475.3 MB, free: 20.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.3235, allocations: 1.375 kB / 475.3 MB, free: 20.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3235, allocations: 0 / 475.3 MB, free: 20.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.3235, allocations: 0 / 475.3 MB, free: 20.17 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.00188/0.3254, allocations: 1.157 MB / 476.4 MB, free: 19.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.3254, allocations: 9.75 kB / 476.4 MB, free: 19.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009982/0.3264, allocations: 182.9 kB / 476.6 MB, free: 19.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.3276, allocations: 0.6809 MB / 477.3 MB, free: 18.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/0.3276, allocations: 60.38 kB / 477.4 MB, free: 18.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/0.3278, allocations: 108.4 kB / 477.5 MB, free: 18.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.3294, allocations: 1.209 MB / 478.7 MB, free: 17.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.3295, allocations: 6.469 kB / 478.7 MB, free: 17.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.054e-05/0.3295, allocations: 33.81 kB / 478.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002456/0.3298, allocations: 68.12 kB / 478.8 MB, free: 17.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.3314, allocations: 1.002 MB / 479.8 MB, free: 17.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00579/0.3372, allocations: 4.773 MB / 484.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.3382, allocations: 0.6739 MB / 485.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.99e-05/0.3383, allocations: 16.44 kB / 485.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006561/0.339, allocations: 0.509 MB / 485.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.655e-06/0.339, allocations: 0 / 485.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004001/0.343, allocations: 2.932 MB / 488.7 MB, free: 9.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.3431, allocations: 170.7 kB / 488.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005687/0.3436, allocations: 0.5899 MB / 489.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/0.3437, allocations: 41.73 kB / 489.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.344, allocations: 475 kB / 489.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.3441, allocations: 256.4 kB / 490.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.899e-05/0.3442, allocations: 20 kB / 490.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.3443, allocations: 386.8 kB / 490.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004549/0.3448, allocations: 369.8 kB / 491 MB, free: 7.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005432/0.3453, allocations: 0.6232 MB / 491.6 MB, free: 6.836 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.004747/0.3501, allocations: 2.513 MB / 494.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.3501, allocations: 4 kB / 494.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001737/0.3518, allocations: 1.324 MB / 495.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.3519, allocations: 37.69 kB / 495.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3519, allocations: 8.781 kB / 495.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000552/0.3524, allocations: 254.3 kB / 495.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.3535, allocations: 279.6 kB / 496 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00498/0.3585, allocations: 5.628 MB / 0.4899 GB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007022/0.3592, allocations: 39.98 kB / 0.4899 GB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.555e-05/0.3593, allocations: 32 kB / 0.4899 GB, free: 12.23 MB / 366.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * 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%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006384/0.3599, allocations: 377.3 kB / 0.4903 GB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.36, allocations: 83.02 kB / 0.4904 GB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00202/0.3621, allocations: 1.149 MB / 0.4915 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/0.3621, allocations: 8 kB / 0.4915 GB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3621, allocations: 4 kB / 0.4915 GB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.3621, allocations: 3.984 kB / 0.4915 GB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.3657, allocations: 2.246 MB / 0.4937 GB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.3658, allocations: 0 / 0.4937 GB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009228/0.3667, allocations: 195.8 kB / 0.4939 GB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006639/0.3674, allocations: 246.3 kB / 0.4941 GB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.215e-05/0.3674, allocations: 23.98 kB / 0.4941 GB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005179/0.3726, allocations: 5.566 MB / 0.4996 GB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.3727, allocations: 11.91 kB / 0.4996 GB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.3751, allocations: 1.703 MB / 0.5012 GB, free: 0 / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.3754, allocations: 152.2 kB / 0.5014 GB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.3755, allocations: 27.98 kB / 0.5014 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003806/0.3759, allocations: 23.98 kB / 0.5014 GB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.376, allocations: 60.42 kB / 0.5015 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.892e-05/0.3761, allocations: 27.98 kB / 0.5015 GB, free: 15.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004872/0.3766, allocations: 415 kB / 0.5019 GB, free: 15.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3766, allocations: 0 / 0.5019 GB, free: 15.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001056/0.3777, allocations: 272 kB / 0.5022 GB, free: 15.03 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001962/0.3779, allocations: 126 kB / 0.5023 GB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.3799, allocations: 1.38 MB / 0.5036 GB, free: 13.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3799, allocations: 0 / 0.5036 GB, free: 13.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.3812, allocations: 0.9251 MB / 0.5046 GB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006928/0.3819, allocations: 160.9 kB / 0.5047 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003537/0.3854, allocations: 2.599 MB / 0.5072 GB, free: 9.695 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000778/0.3862, allocations: 1.135 MB / 0.5084 GB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005276/0.3868, allocations: 210.5 kB / 0.5086 GB, free: 8.324 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.3869, allocations: 51.44 kB / 0.5086 GB, free: 8.273 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3869, allocations: 4 kB / 0.5086 GB, free: 8.27 MB / 382.1 MB Notification: Performance of Templates: time 0.01723/0.4042, allocations: 9.989 MB / 0.5184 GB, free: 14.34 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches