Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC") [: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.001056/0.001056, allocations: 183.8 kB / 8.138 MB, free: 2.219 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.199/1.199, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.0008634/0.0008634, allocations: 90.38 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2006/0.2006, allocations: 37.97 MB / 347.7 MB, free: 7.562 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.27e-06/5.29e-06, allocations: 0 / 410 MB, free: 46.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09179/0.09181, allocations: 56.31 MB / 466.3 MB, free: 6.5 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2984/0.3902, allocations: 95.59 MB / 0.5487 GB, free: 15 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.3905, allocations: 91.94 kB / 0.5488 GB, free: 14.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02288/0.4134, allocations: 7.281 MB / 0.5559 GB, free: 7.566 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.34e-05/0.4135, allocations: 11.98 kB / 0.556 GB, free: 7.555 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009338/0.4144, allocations: 0.5784 MB / 0.5565 GB, free: 6.934 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.4145, allocations: 8.031 kB / 0.5565 GB, free: 6.926 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.876e-05/0.4146, allocations: 47.42 kB / 0.5566 GB, free: 6.879 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.4164, allocations: 0.711 MB / 0.5573 GB, free: 6.129 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.4164, allocations: 8 kB / 0.5573 GB, free: 6.121 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.601e-05/0.4165, allocations: 23.91 kB / 0.5573 GB, free: 6.098 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004205/0.4169, allocations: 241.9 kB / 0.5575 GB, free: 5.859 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.4174, allocations: 324.5 kB / 0.5578 GB, free: 5.516 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.4174, allocations: 0 / 0.5578 GB, free: 5.516 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.4174, allocations: 0 / 0.5578 GB, free: 5.516 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.4175, allocations: 8 kB / 0.5578 GB, free: 5.508 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.419, allocations: 1.391 MB / 0.5592 GB, free: 4.035 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.4193, allocations: 141 kB / 0.5593 GB, free: 3.879 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.4194, allocations: 77.94 kB / 0.5594 GB, free: 3.797 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.4194, allocations: 15.94 kB / 0.5594 GB, free: 3.781 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.4195, allocations: 34.56 kB / 0.5595 GB, free: 3.738 MB / 394.7 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.4195, allocations: 0 / 0.5595 GB, free: 3.738 MB / 394.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009202/0.4204, allocations: 0.5936 MB / 0.56 GB, free: 3.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.4204, allocations: 81.11 kB / 0.5601 GB, free: 2.992 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.4207, allocations: 247.5 kB / 0.5604 GB, free: 2.742 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.4208, allocations: 29.73 kB / 0.5604 GB, free: 2.707 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.654e-05/0.4209, allocations: 191.5 kB / 0.5606 GB, free: 2.516 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.415e-05/0.4209, allocations: 47.2 kB / 0.5606 GB, free: 2.469 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.02e-05/0.4209, allocations: 4 kB / 0.5606 GB, free: 2.465 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.4211, allocations: 334.8 kB / 0.5609 GB, free: 2.129 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.4212, allocations: 63.97 kB / 0.561 GB, free: 2.066 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.4213, allocations: 165.8 kB / 0.5612 GB, free: 1.859 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.4215, allocations: 91.88 kB / 0.5612 GB, free: 1.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.4215, allocations: 4 kB / 0.5612 GB, free: 1.766 MB / 394.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003688/0.4219, allocations: 256.9 kB / 0.5615 GB, free: 1.508 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.4219, allocations: 5.406 kB / 0.5615 GB, free: 1.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.4219, allocations: 4 kB / 0.5615 GB, free: 1.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.4219, allocations: 4 kB / 0.5615 GB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.4222, allocations: 59.91 kB / 0.5616 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.4222, allocations: 4 kB / 0.5616 GB, free: 1.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.4224, allocations: 16.33 kB / 0.5616 GB, free: 1.418 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.4224, allocations: 12 kB / 0.5616 GB, free: 1.406 MB / 394.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): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.688e-05/0.4225, allocations: 116.9 kB / 0.5617 GB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.331e-05/0.4226, allocations: 27.62 kB / 0.5617 GB, free: 1.258 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003999/0.423, allocations: 227.7 kB / 0.5619 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.423, allocations: 4 kB / 0.562 GB, free: 1.023 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.423, allocations: 0 / 0.562 GB, free: 1.023 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.423, allocations: 3.984 kB / 0.562 GB, free: 1.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000674/0.4237, allocations: 0.5699 MB / 0.5625 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4237, allocations: 4 kB / 0.5625 GB, free: 408 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002252/0.4239, allocations: 35.92 kB / 0.5625 GB, free: 372 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.424, allocations: 0 / 0.5625 GB, free: 372 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.424, allocations: 4 kB / 0.5626 GB, free: 368 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.424, allocations: 0 / 0.5626 GB, free: 368 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.424, allocations: 3.938 kB / 0.5626 GB, free: 364 kB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000501/0.4245, allocations: 455 kB / 0.563 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.038e-05/0.4246, allocations: 104.8 kB / 0.5631 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.882e-05/0.4247, allocations: 3.906 kB / 0.5631 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.4248, allocations: 7.984 kB / 0.5631 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.998e-05/0.4249, allocations: 7.984 kB / 0.5631 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.4249, allocations: 12.06 kB / 0.5631 GB, free: 15.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001729/0.4251, allocations: 203 kB / 0.5633 GB, free: 15.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003457/0.4254, allocations: 56 kB / 0.5634 GB, free: 15.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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.0001307/0.4256, allocations: 103.2 kB / 0.5635 GB, free: 15.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002823/0.4259, allocations: 171.8 kB / 0.5636 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4259, allocations: 0.875 kB / 0.5636 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.426, allocations: 91.81 kB / 0.5637 GB, free: 15.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.4264, allocations: 64.64 kB / 0.5638 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008604/0.4273, allocations: 459.8 kB / 0.5642 GB, free: 14.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004376/0.4277, allocations: 0.845 MB / 0.565 GB, free: 13.69 MB / 410.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4277, allocations: 0 / 0.565 GB, free: 13.69 MB / 410.7 MB Notification: Performance of Templates: time 0.006016/0.4337, allocations: 2.776 MB / 0.5678 GB, free: 10.92 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i,meter.p,meter.v Variables in the result:meter.I_base,meter.S_nom,meter.V_base,meter.V_nom,meter.av,meter.i,meter.p,meter.puUnits,meter.tcst,meter.v,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time,transPh.a_end,transPh.a_start,transPh.coef,transPh.n,transPh.ph_end,transPh.ph_start,transPh.t_change,transPh.t_duration,trsSignal[1].coef,trsSignal[1].s_end,trsSignal[1].s_start,trsSignal[1].t_change,trsSignal[1].t_duration,trsSignal[2].coef,trsSignal[2].s_end,trsSignal[2].s_start,trsSignal[2].t_change,trsSignal[2].t_duration,voltage.S_nom,voltage.V_base,voltage.V_nom,voltage.alpha0,voltage.f,voltage.fType,voltage.pol,voltage.puUnits,voltage.use_vPhasor_in,voltage.v0eff,zLoadAC.S_base,zLoadAC.S_nom,zLoadAC.V2_nom,zLoadAC.V_nom,zLoadAC.Z_start[1],zLoadAC.Z_start[2],zLoadAC.dynType,zLoadAC.i_start,zLoadAC.pq0[1],zLoadAC.pq0[2],zLoadAC.psi_start,zLoadAC.puUnits,zLoadAC.use_pq_in,zLoadAC.v_start