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.001391/0.001391, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001602/0.001602, allocations: 195 kB / 18 MB, free: 5.105 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.417/1.417, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 38.05 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 63.91 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3677, allocations: 58.05 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004454/0.3722, allocations: 3.924 MB / 0.5074 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.3734, allocations: 0.867 MB / 0.5083 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.3736, allocations: 15.81 kB / 0.5083 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.3738, allocations: 44 kB / 0.5084 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004328/0.3742, allocations: 162.3 kB / 0.5085 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001884/0.3744, allocations: 92.02 kB / 0.5086 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003718/0.3748, allocations: 370.9 kB / 0.5089 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.375, allocations: 89.36 kB / 0.509 GB, free: 3.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.3752, allocations: 174.1 kB / 0.5092 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003317/0.3756, allocations: 159.7 kB / 0.5094 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.042e-05/0.3756, allocations: 16.34 kB / 0.5094 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.941e-05/0.3757, allocations: 17.44 kB / 0.5094 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.3758, allocations: 82.97 kB / 0.5095 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.3759, allocations: 128.1 kB / 0.5096 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003789/0.3763, allocations: 248.5 kB / 0.5098 GB, free: 3.395 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.3763, allocations: 0 / 0.5098 GB, free: 3.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3764, allocations: 7.938 kB / 0.5098 GB, free: 3.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.3764, allocations: 5 kB / 0.5098 GB, free: 3.383 MB / 382.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.0009346/0.3773, allocations: 0.5543 MB / 0.5104 GB, free: 2.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.3774, allocations: 14.3 kB / 0.5104 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.571e-05/0.3774, allocations: 53.78 kB / 0.5104 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.396e-05/0.3775, allocations: 35.09 kB / 0.5105 GB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/0.3781, allocations: 332.3 kB / 0.5108 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.3781, allocations: 21.19 kB / 0.5108 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.93e-05/0.3782, allocations: 20.47 kB / 0.5108 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004492/0.3786, allocations: 263.1 kB / 0.5111 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.3786, allocations: 0.6562 kB / 0.5111 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.3787, allocations: 10.34 kB / 0.5111 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.3787, allocations: 9.594 kB / 0.5111 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003218/0.379, allocations: 160.7 kB / 0.5113 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.3803, allocations: 1.173 MB / 0.5124 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.3805, allocations: 82.89 kB / 0.5125 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.37e-05/0.3806, allocations: 27.45 kB / 0.5125 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.3806, allocations: 1.062 kB / 0.5125 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.3806, allocations: 42.67 kB / 0.5125 GB, free: 1.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.3806, allocations: 0 / 0.5125 GB, free: 1.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006186/0.3813, allocations: 408.9 kB / 0.5129 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.3813, allocations: 78.75 kB / 0.513 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/0.3815, allocations: 244.7 kB / 0.5132 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.536e-06/0.3816, allocations: 29.7 kB / 0.5133 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.127e-05/0.3817, allocations: 192 kB / 0.5135 GB, free: 384 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/0.3817, allocations: 31.81 kB / 0.5135 GB, free: 360 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.001e-05/0.3817, allocations: 41.23 kB / 0.5135 GB, free: 328 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.599e-05/0.3818, allocations: 335.2 kB / 0.5138 GB, free: 16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.193e-05/0.3819, allocations: 26.03 kB / 0.5139 GB, free: 15.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.382, allocations: 126.7 kB / 0.514 GB, free: 15.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.3822, allocations: 160.4 kB / 0.5141 GB, free: 15.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3822, allocations: 5.812 kB / 0.5141 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002553/0.3825, allocations: 177.2 kB / 0.5143 GB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.3825, allocations: 11.98 kB / 0.5143 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3825, allocations: 7.281 kB / 0.5143 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.3825, allocations: 5.062 kB / 0.5143 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.3827, allocations: 44.5 kB / 0.5144 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.3827, allocations: 9.781 kB / 0.5144 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.3829, allocations: 12.38 kB / 0.5144 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.3829, allocations: 16.23 kB / 0.5144 GB, free: 15.56 MB / 398.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.0001436/0.383, allocations: 139 kB / 0.5146 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.502e-05/0.3831, allocations: 25.42 kB / 0.5146 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001885/0.3833, allocations: 97.11 kB / 0.5147 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3833, allocations: 2.188 kB / 0.5147 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3833, allocations: 4 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3833, allocations: 2.094 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005741/0.3839, allocations: 422.1 kB / 0.5151 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3839, allocations: 5.406 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.894e-05/0.384, allocations: 14.89 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.384, allocations: 2.141 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.384, allocations: 1.375 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.3841, allocations: 2.328 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.44e-05/0.3841, allocations: 1.281 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003043/0.3844, allocations: 236 kB / 0.5153 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.088e-05/0.3845, allocations: 102.8 kB / 0.5154 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.3845, allocations: 2.422 kB / 0.5154 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.494e-05/0.3846, allocations: 2.062 kB / 0.5154 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.112e-05/0.3846, allocations: 9.25 kB / 0.5154 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.926e-06/0.3847, allocations: 11.31 kB / 0.5155 GB, free: 14.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001605/0.3848, allocations: 170.3 kB / 0.5156 GB, free: 14.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3848, allocations: 0 / 0.5156 GB, free: 14.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.3851, allocations: 38.94 kB / 0.5157 GB, free: 14.55 MB / 398.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.0004912/0.3856, allocations: 0.7585 MB / 0.5164 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000191/0.3858, allocations: 90.03 kB / 0.5165 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3858, allocations: 0 / 0.5165 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.304e-05/0.3859, allocations: 28.06 kB / 0.5165 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004898/0.3864, allocations: 65.73 kB / 0.5166 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.389, allocations: 2.293 MB / 0.5188 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.3895, allocations: 0.7617 MB / 0.5196 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.3896, allocations: 30.66 kB / 0.5196 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.3897, allocations: 74.17 kB / 0.5197 GB, free: 11.18 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3897, allocations: 0 / 0.5197 GB, free: 11.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02536/0.4151, allocations: 4.209 MB / 0.5238 GB, free: 10.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.904/8.319, allocations: 13.3 kB / 0.5238 GB, free: 10.61 MB / 398.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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),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