Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009972/0.0009971, allocations: 185.3 kB / 8.138 MB, free: 2.195 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.211/1.211, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009388/0.0009385, allocations: 94.36 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1629/0.1629, allocations: 37.96 MB / 347.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.675e-06/7.695e-06, allocations: 4 kB / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08562/0.08564, allocations: 56.32 MB / 466.3 MB, free: 6.473 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2674/0.3531, allocations: 101.4 MB / 0.5545 GB, free: 9.129 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.3534, allocations: 83.95 kB / 0.5545 GB, free: 9.047 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0399/0.3933, allocations: 13.95 MB / 0.5682 GB, free: 10.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.619e-05/0.3934, allocations: 16 kB / 0.5682 GB, free: 10.95 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001555/0.395, allocations: 0.9558 MB / 0.5691 GB, free: 9.934 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.395, allocations: 11.97 kB / 0.5691 GB, free: 9.922 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.3952, allocations: 86.97 kB / 0.5692 GB, free: 9.836 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003176/0.3984, allocations: 1.188 MB / 0.5704 GB, free: 8.602 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.3985, allocations: 88.7 kB / 0.5704 GB, free: 8.504 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.3986, allocations: 47.91 kB / 0.5705 GB, free: 8.457 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008932/0.3995, allocations: 0.5226 MB / 0.571 GB, free: 7.934 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.4006, allocations: 0.7435 MB / 0.5717 GB, free: 7.145 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.4007, allocations: 4 kB / 0.5717 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.508e-05/0.4007, allocations: 0 / 0.5717 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/0.4007, allocations: 16 kB / 0.5717 GB, free: 7.125 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003557/0.4043, allocations: 2.616 MB / 0.5743 GB, free: 4.414 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.4049, allocations: 387.4 kB / 0.5747 GB, free: 4.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003176/0.4052, allocations: 250.9 kB / 0.5749 GB, free: 3.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.4052, allocations: 12.27 kB / 0.5749 GB, free: 3.758 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004067/0.4057, allocations: 286.8 kB / 0.5752 GB, free: 3.457 MB / 410.7 MB Notification: Performance of pre-optimization done (n=41): time 1.764e-06/0.4057, allocations: 0 / 0.5752 GB, free: 3.457 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.001932/0.4076, allocations: 1.313 MB / 0.5765 GB, free: 2.062 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.4077, allocations: 114.8 kB / 0.5766 GB, free: 1.926 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.4081, allocations: 376.9 kB / 0.5769 GB, free: 1.559 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.4081, allocations: 29.7 kB / 0.577 GB, free: 1.523 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.4083, allocations: 307.5 kB / 0.5773 GB, free: 1.215 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.4084, allocations: 134.1 kB / 0.5774 GB, free: 1.082 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.4084, allocations: 0 / 0.5774 GB, free: 1.082 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.4086, allocations: 370.7 kB / 0.5777 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002879/0.4089, allocations: 197.2 kB / 0.5779 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003747/0.4093, allocations: 365.3 kB / 0.5783 GB, free: 100 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003479/0.4096, allocations: 244.7 kB / 0.5785 GB, free: 15.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4096, allocations: 4 kB / 0.5785 GB, free: 15.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001022/0.4107, allocations: 0.7354 MB / 0.5792 GB, free: 15.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.4107, allocations: 4 kB / 0.5792 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.4107, allocations: 4 kB / 0.5792 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000238/0.411, allocations: 74.19 kB / 0.5793 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004434/0.4114, allocations: 107.8 kB / 0.5794 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002249/0.4137, allocations: 2.713 MB / 0.5821 GB, free: 11.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.414, allocations: 19.89 kB / 0.5821 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.32e-05/0.4141, allocations: 43.92 kB / 0.5821 GB, free: 11.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001526/0.4143, allocations: 136.9 kB / 0.5823 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.178e-05/0.4144, allocations: 51.34 kB / 0.5823 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008216/0.4152, allocations: 0.5593 MB / 0.5829 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.4152, allocations: 8 kB / 0.5829 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4152, allocations: 4 kB / 0.5829 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.4152, allocations: 0 / 0.5829 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.4169, allocations: 1.279 MB / 0.5841 GB, free: 9.738 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4169, allocations: 64 / 0.5841 GB, free: 9.738 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003317/0.4173, allocations: 75.89 kB / 0.5842 GB, free: 9.664 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001736/0.4175, allocations: 61.67 kB / 0.5843 GB, free: 9.598 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.4175, allocations: 7.984 kB / 0.5843 GB, free: 9.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002043/0.4196, allocations: 2.703 MB / 0.5869 GB, free: 6.656 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.4196, allocations: 4.031 kB / 0.5869 GB, free: 6.652 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001125/0.4207, allocations: 0.9239 MB / 0.5878 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/0.4209, allocations: 168.4 kB / 0.588 GB, free: 5.473 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.4211, allocations: 27.98 kB / 0.588 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.4215, allocations: 39.95 kB / 0.588 GB, free: 5.406 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.4215, allocations: 27.95 kB / 0.5881 GB, free: 5.379 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/0.4216, allocations: 12 kB / 0.5881 GB, free: 5.367 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002844/0.4219, allocations: 283.1 kB / 0.5883 GB, free: 5.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006408/0.4225, allocations: 132 kB / 0.5885 GB, free: 4.961 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001802/0.4227, allocations: 133.5 kB / 0.5886 GB, free: 4.824 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009805/0.4237, allocations: 0.7329 MB / 0.5893 GB, free: 4.066 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4237, allocations: 1.375 kB / 0.5893 GB, free: 4.066 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.4243, allocations: 439.5 kB / 0.5897 GB, free: 3.617 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005825/0.4249, allocations: 103.4 kB / 0.5898 GB, free: 3.516 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.4267, allocations: 1.098 MB / 0.5909 GB, free: 2.379 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006892/0.4274, allocations: 1.03 MB / 0.5919 GB, free: 1.32 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4274, allocations: 0 / 0.5919 GB, free: 1.32 MB / 426.7 MB Notification: Performance of Templates: time 0.01138/0.4388, allocations: 6.263 MB / 0.598 GB, free: 11.07 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches