Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.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.PVsource,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.PVsource") translateModel(PowerSystems.Examples.AC3ph.Generation.PVsource,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.PVsource") [: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.001013/0.001013, allocations: 186.5 kB / 8.133 MB, free: 2.199 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.308/1.308, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0008738/0.0008738, allocations: 95 kB / 261.7 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1644/0.1644, allocations: 37.97 MB / 347.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.192e-06/6.222e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09587, allocations: 56.32 MB / 466.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2646/0.3605, allocations: 95.8 MB / 0.549 GB, free: 14.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/0.3608, allocations: 83.95 kB / 0.549 GB, free: 14.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03504/0.3959, allocations: 12.13 MB / 0.5609 GB, free: 2.406 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.3959, allocations: 8 kB / 0.5609 GB, free: 2.398 MB / 394.7 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.0009139/0.3968, allocations: 0.6134 MB / 0.5615 GB, free: 1.738 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.3969, allocations: 8.031 kB / 0.5615 GB, free: 1.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006195/0.3975, allocations: 95.36 kB / 0.5616 GB, free: 1.637 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.3997, allocations: 0.8605 MB / 0.5624 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.3997, allocations: 8 kB / 0.5624 GB, free: 0.7266 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.534e-05/0.3997, allocations: 20 kB / 0.5625 GB, free: 0.707 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004462/0.4002, allocations: 273.5 kB / 0.5627 GB, free: 448 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000602/0.4008, allocations: 420.3 kB / 0.5631 GB, free: 4 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.84e-05/0.4008, allocations: 8.047 kB / 0.5631 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.4009, allocations: 0 / 0.5631 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.484e-05/0.4009, allocations: 20.78 kB / 0.5631 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.403, allocations: 1.626 MB / 0.5647 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.4032, allocations: 128.2 kB / 0.5649 GB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.4034, allocations: 98.5 kB / 0.5649 GB, free: 14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.4034, allocations: 11.98 kB / 0.565 GB, free: 13.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.4034, allocations: 30.56 kB / 0.565 GB, free: 13.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.4035, allocations: 0 / 0.565 GB, free: 13.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.001073/0.4045, allocations: 0.6559 MB / 0.5656 GB, free: 13.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.4046, allocations: 81.09 kB / 0.5657 GB, free: 13.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.4048, allocations: 251.4 kB / 0.5659 GB, free: 12.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.4049, allocations: 29.64 kB / 0.566 GB, free: 12.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.405, allocations: 223.4 kB / 0.5662 GB, free: 12.63 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.487e-05/0.4051, allocations: 67.03 kB / 0.5662 GB, free: 12.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.157e-05/0.4051, allocations: 0 / 0.5662 GB, free: 12.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4052, allocations: 338.8 kB / 0.5666 GB, free: 12.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.4053, allocations: 84.25 kB / 0.5667 GB, free: 12.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.4055, allocations: 193 kB / 0.5668 GB, free: 11.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.4057, allocations: 127.3 kB / 0.567 GB, free: 11.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.4057, allocations: 3.906 kB / 0.567 GB, free: 11.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008184/0.4066, allocations: 416.2 kB / 0.5674 GB, free: 11.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.4066, allocations: 9.406 kB / 0.5674 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005809/0.4072, allocations: 282.3 kB / 0.5676 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004776/0.4077, allocations: 124.8 kB / 0.5678 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.4079, allocations: 51.91 kB / 0.5678 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0023/0.4102, allocations: 1.978 MB / 0.5697 GB, free: 8.809 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.4104, allocations: 8 kB / 0.5697 GB, free: 8.801 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.4104, allocations: 12 kB / 0.5698 GB, free: 8.789 MB / 410.7 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 9.347e-05/0.4105, allocations: 116.8 kB / 0.5699 GB, free: 8.668 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.4e-05/0.4106, allocations: 23.72 kB / 0.5699 GB, free: 8.645 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004035/0.411, allocations: 232.4 kB / 0.5701 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.411, allocations: 4.062 kB / 0.5701 GB, free: 8.398 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.411, allocations: 4 kB / 0.5701 GB, free: 8.395 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.411, allocations: 3.984 kB / 0.5701 GB, free: 8.391 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.4121, allocations: 0.6825 MB / 0.5708 GB, free: 7.648 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.4121, allocations: 4 kB / 0.5708 GB, free: 7.645 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002233/0.4123, allocations: 31.98 kB / 0.5708 GB, free: 7.613 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.972e-05/0.4124, allocations: 28.84 kB / 0.5709 GB, free: 7.582 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.4125, allocations: 7.984 kB / 0.5709 GB, free: 7.574 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.4136, allocations: 1.403 MB / 0.5722 GB, free: 6.062 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.4136, allocations: 4.031 kB / 0.5722 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005421/0.4141, allocations: 476.7 kB / 0.5727 GB, free: 5.527 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.46e-05/0.4142, allocations: 108.9 kB / 0.5728 GB, free: 5.402 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.502e-05/0.4143, allocations: 4 kB / 0.5728 GB, free: 5.398 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.4145, allocations: 4 kB / 0.5728 GB, free: 5.395 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.4145, allocations: 11.98 kB / 0.5728 GB, free: 5.383 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.4145, allocations: 4 kB / 0.5728 GB, free: 5.379 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001827/0.4147, allocations: 195.1 kB / 0.573 GB, free: 5.188 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004806/0.4152, allocations: 88 kB / 0.5731 GB, free: 5.102 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001826/0.4154, allocations: 123 kB / 0.5732 GB, free: 4.973 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005868/0.416, allocations: 346.4 kB / 0.5735 GB, free: 4.625 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.416, allocations: 4.062 kB / 0.5735 GB, free: 4.621 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003036/0.4163, allocations: 218.3 kB / 0.5737 GB, free: 4.395 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.4167, allocations: 56.84 kB / 0.5738 GB, free: 4.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.4178, allocations: 0.6595 MB / 0.5744 GB, free: 3.641 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005358/0.4184, allocations: 0.8725 MB / 0.5753 GB, free: 2.734 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4184, allocations: 0 / 0.5753 GB, free: 2.734 MB / 410.7 MB Notification: Performance of Templates: time 0.007688/0.4261, allocations: 3.656 MB / 0.5789 GB, free: 15.09 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PVsource.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches