Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006937/0.0006938, allocations: 92.41 kB / 16.65 MB, free: 6.602 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.0007124/0.0007124, allocations: 171.1 kB / 17.56 MB, free: 6.203 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.194/1.194, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1608/0.1608, allocations: 38.09 MB / 330.8 MB, free: 8.52 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002888, allocations: 8 kB / 400.7 MB, free: 34.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09175/0.09206, allocations: 59.17 MB / 459.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007159/0.09926, allocations: 6.772 MB / 466.7 MB, free: 236 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002992/0.1023, allocations: 1.901 MB / 468.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000716/0.103, allocations: 35.75 kB / 468.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006595/0.1037, allocations: 198.8 kB / 468.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009067/0.1046, allocations: 346.3 kB / 469.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004671/0.1051, allocations: 199.8 kB / 469.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.1065, allocations: 1.418 MB / 470.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005463/0.1071, allocations: 425 kB / 471.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006752/0.1078, allocations: 362.4 kB / 471.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007839/0.1086, allocations: 462.2 kB / 472 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.1087, allocations: 39.94 kB / 472 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.1088, allocations: 36 kB / 472 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002533/0.1091, allocations: 219.4 kB / 472.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004017/0.1095, allocations: 376 kB / 472.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007399/0.1103, allocations: 0.9693 MB / 473.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1103, allocations: 0 / 473.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1103, allocations: 0 / 473.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.1103, allocations: 0 / 473.6 MB, free: 9.262 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001577/0.1119, allocations: 0.9159 MB / 474.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.1119, allocations: 12.03 kB / 474.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.1121, allocations: 76.09 kB / 474.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009408/0.113, allocations: 0.6252 MB / 475.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.1132, allocations: 113.3 kB / 475.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-05/0.1132, allocations: 63.94 kB / 475.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.1144, allocations: 0.7538 MB / 476.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.1145, allocations: 4 kB / 476.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.145e-05/0.1145, allocations: 24 kB / 476.2 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.1145, allocations: 16 kB / 476.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.1157, allocations: 0.6362 MB / 476.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00297/0.1187, allocations: 2.471 MB / 479.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008043/0.1195, allocations: 424.9 kB / 479.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003792/0.1199, allocations: 195.1 kB / 479.9 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.1199, allocations: 4.281 kB / 479.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004169/0.1203, allocations: 251.2 kB / 480.1 MB, free: 2.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 1.974e-06/0.1203, allocations: 0 / 480.1 MB, free: 2.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002986/0.1233, allocations: 0.8861 MB / 481 MB, free: 1.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.1234, allocations: 132.7 kB / 481.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003878/0.1238, allocations: 405.9 kB / 481.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.1238, allocations: 29.7 kB / 481.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.124, allocations: 324 kB / 481.9 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.396e-05/0.1241, allocations: 122.3 kB / 482 MB, free: 456 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.495e-05/0.1242, allocations: 45.69 kB / 482.1 MB, free: 404 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1243, allocations: 350.8 kB / 482.4 MB, free: 44 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/0.1246, allocations: 132.9 kB / 482.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.125, allocations: 250 kB / 482.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.1264, allocations: 0.6559 MB / 483.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1264, allocations: 4 kB / 483.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009626/0.1274, allocations: 0.5211 MB / 484 MB, free: 14.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1274, allocations: 11.98 kB / 484 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1274, allocations: 4 kB / 484 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004328/0.1278, allocations: 156.7 kB / 484.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.1281, allocations: 75.91 kB / 484.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002958/0.1311, allocations: 2.037 MB / 486.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/0.1314, allocations: 59.58 kB / 486.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.1314, allocations: 16 kB / 486.3 MB, free: 11.88 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002965/0.1317, allocations: 243.5 kB / 486.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.721e-05/0.1318, allocations: 43.52 kB / 486.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001188/0.133, allocations: 483.8 kB / 487.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.133, allocations: 4 kB / 487.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.133, allocations: 15.94 kB / 487.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.133, allocations: 3.938 kB / 487.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006707/0.1337, allocations: 0.6707 MB / 487.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1337, allocations: 0 / 487.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/0.134, allocations: 51.91 kB / 487.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003876/0.1344, allocations: 148.8 kB / 488 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.1344, allocations: 11.94 kB / 488 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002756/0.1372, allocations: 2.026 MB / 490 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1372, allocations: 0 / 490 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001476/0.1387, allocations: 0.6907 MB / 490.7 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.1388, allocations: 152.5 kB / 490.8 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.1389, allocations: 4 kB / 490.8 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.1391, allocations: 19.98 kB / 490.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.1392, allocations: 39.88 kB / 490.9 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.1392, allocations: 12 kB / 490.9 MB, free: 7.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000262/0.1395, allocations: 283.1 kB / 491.2 MB, free: 6.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1395, allocations: 0 / 491.2 MB, free: 6.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005281/0.14, allocations: 159.4 kB / 491.3 MB, free: 6.594 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001227/0.1402, allocations: 118.5 kB / 491.5 MB, free: 6.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008967/0.1411, allocations: 0.5064 MB / 492 MB, free: 5.953 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1411, allocations: 3.938 kB / 492 MB, free: 5.949 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004977/0.1416, allocations: 335.1 kB / 492.3 MB, free: 5.609 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006699/0.1423, allocations: 153.7 kB / 492.5 MB, free: 5.457 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.1442, allocations: 1.572 MB / 494 MB, free: 3.852 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.1447, allocations: 0.9289 MB / 495 MB, free: 2.895 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002578/0.1449, allocations: 88.62 kB / 495 MB, free: 2.805 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.955e-05/0.145, allocations: 31.44 kB / 495.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.145, allocations: 0 / 495.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of Templates: time 0.01152/0.1565, allocations: 7.621 MB / 0.4909 GB, free: 11.25 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches