Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008313/0.0008314, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.0009027/0.0009028, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.202/1.202, allocations: 223.2 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.1577/0.1577, allocations: 38.09 MB / 330.8 MB, free: 8.527 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.0002799, allocations: 8 kB / 400.8 MB, free: 34.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08284/0.08314, allocations: 59.18 MB / 460 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004395/0.08756, allocations: 4.183 MB / 464.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.08914, allocations: 1.048 MB / 465.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002535/0.08941, allocations: 27.81 kB / 465.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.08956, allocations: 31.77 kB / 465.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004167/0.08999, allocations: 139.3 kB / 465.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001817/0.09018, allocations: 87.84 kB / 465.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004817/0.09067, allocations: 0.4946 MB / 466 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.09083, allocations: 64.8 kB / 466.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.09107, allocations: 143.2 kB / 466.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002873/0.09137, allocations: 163.4 kB / 466.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.991e-05/0.09141, allocations: 12 kB / 466.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.657e-05/0.09145, allocations: 8 kB / 466.4 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.641e-05/0.09155, allocations: 79.72 kB / 466.5 MB, free: 448 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.09169, allocations: 141 kB / 466.6 MB, free: 300 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002136/0.09191, allocations: 243 kB / 466.8 MB, free: 56 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.09192, allocations: 0 / 466.8 MB, free: 56 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.09193, allocations: 0 / 466.8 MB, free: 56 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.09194, allocations: 4 kB / 466.8 MB, free: 52 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007038/0.09265, allocations: 0.5077 MB / 467.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.09269, allocations: 12.03 kB / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.956e-05/0.09276, allocations: 62.61 kB / 467.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.645e-05/0.09281, allocations: 24.66 kB / 467.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/0.09317, allocations: 315.6 kB / 467.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.09319, allocations: 20.44 kB / 467.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.09323, allocations: 19.98 kB / 467.8 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.09359, allocations: 262.1 kB / 468 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.09361, allocations: 0 / 468 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.09364, allocations: 16 kB / 468.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.09365, allocations: 4 kB / 468.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.09389, allocations: 163.8 kB / 468.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.09501, allocations: 1.187 MB / 469.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.09514, allocations: 77.14 kB / 469.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.411e-05/0.09519, allocations: 29.78 kB / 469.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.09521, allocations: 4 kB / 469.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.09525, allocations: 30.56 kB / 469.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.09525, allocations: 0 / 469.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006077/0.09586, allocations: 408.7 kB / 469.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.09592, allocations: 85.22 kB / 470 MB, free: 12.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/0.09613, allocations: 250.5 kB / 470.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.09615, allocations: 25.7 kB / 470.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.09626, allocations: 199.6 kB / 470.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.09629, allocations: 27.56 kB / 470.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3e-05/0.09633, allocations: 21.7 kB / 470.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.09645, allocations: 330.8 kB / 470.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.558e-05/0.0965, allocations: 24 kB / 470.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.09661, allocations: 131 kB / 471 MB, free: 11.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.09678, allocations: 164.7 kB / 471.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.09679, allocations: 0 / 471.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002424/0.09703, allocations: 181.2 kB / 471.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.09705, allocations: 4 kB / 471.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.09707, allocations: 7.938 kB / 471.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.09708, allocations: 4 kB / 471.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.09723, allocations: 39.92 kB / 471.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.413e-06/0.09725, allocations: 7.938 kB / 471.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.841e-05/0.09734, allocations: 8 kB / 471.4 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.09736, allocations: 8.344 kB / 471.4 MB, free: 10.99 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.09748, allocations: 161.7 kB / 471.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/0.09752, allocations: 19.72 kB / 471.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.09767, allocations: 103.2 kB / 471.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.09769, allocations: 4 kB / 471.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.0977, allocations: 0 / 471.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.0977, allocations: 0 / 471.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004036/0.09811, allocations: 431.2 kB / 472.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.09813, allocations: 4.031 kB / 472.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.061e-05/0.09821, allocations: 12 kB / 472.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.09822, allocations: 7.984 kB / 472.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.09824, allocations: 0 / 472.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.09824, allocations: 0 / 472.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.09825, allocations: 4 kB / 472.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.09847, allocations: 232.8 kB / 472.4 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.09854, allocations: 100.9 kB / 472.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.326e-05/0.09857, allocations: 448 / 472.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.049e-05/0.09865, allocations: 0 / 472.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.844e-05/0.09868, allocations: 11.92 kB / 472.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.09869, allocations: 8 kB / 472.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001294/0.09883, allocations: 174 kB / 472.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09883, allocations: 0 / 472.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.09913, allocations: 40 kB / 472.7 MB, free: 9.594 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000428/0.09956, allocations: 0.7533 MB / 473.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000155/0.09973, allocations: 100.1 kB / 473.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.09974, allocations: 0 / 473.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.333e-05/0.09978, allocations: 27.92 kB / 473.6 MB, free: 8.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000456/0.1002, allocations: 52.66 kB / 473.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.1025, allocations: 2.411 MB / 476.1 MB, free: 6.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.1027, allocations: 0.7599 MB / 476.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.1029, allocations: 30.28 kB / 476.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.652e-05/0.1029, allocations: 75.41 kB / 476.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.103, allocations: 0 / 476.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1046/0.2075, allocations: 3.822 MB / 480.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002224/0.2078, allocations: 205.9 kB / 480.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.051, allocations: 0 / 480.9 MB, free: 1.219 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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:der(ind.i),der(voltage.theta),grd.term.i,grd.term.v,ind.S_nom,ind.V_nom,ind.dynType,ind.f_nom,ind.i,ind.i_start,ind.puUnits,ind.r,ind.term.i[1],ind.term.i[2],ind.term.v[1],ind.term.v[2],ind.v,ind.v_start,ind.x,meter.S_nom,meter.V_nom,meter.av,meter.i,meter.i0,meter.p,meter.puUnits,meter.tcst,meter.term_n.i[1],meter.term_n.i[2],meter.term_n.v[1],meter.term_n.v[2],meter.term_p.i[1],meter.term_p.i[2],meter.term_p.v[1],meter.term_p.v[2],meter.v,meter.v0,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.initime,system.omega,system.omega_nom,system.receiveFreq.H,system.receiveFreq.h,system.receiveFreq.w_H,system.receiveFreq.w_h,system.refType,system.synRef,system.theta,system.thetaRef,system.thetaRel,system.w_nom,time,voltage.S_nom,voltage.V_nom,voltage.alpha0,voltage.f,voltage.fType,voltage.neutral.i,voltage.neutral.v,voltage.pol,voltage.puUnits,voltage.term.i[1],voltage.term.i[2],voltage.term.v[1],voltage.term.v[2],voltage.use_vPhasor_in,voltage.v0eff