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.001434/0.001434, allocations: 108.5 kB / 17.05 MB, free: 6.09 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.001326/0.001326, allocations: 192 kB / 17.99 MB, free: 5.184 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.405/1.405, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2045/0.2045, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002927/0.002928, allocations: 63.89 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3175, allocations: 58.06 MB / 0.5036 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004459/0.322, allocations: 3.905 MB / 0.5074 GB, free: 4.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.3232, allocations: 0.8773 MB / 0.5083 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.3234, allocations: 14.44 kB / 0.5083 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.3236, allocations: 40.42 kB / 0.5083 GB, free: 4.207 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004407/0.3241, allocations: 170.9 kB / 0.5085 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.3243, allocations: 88.14 kB / 0.5086 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.3247, allocations: 375.1 kB / 0.5089 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.3248, allocations: 82.48 kB / 0.509 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.3251, allocations: 169 kB / 0.5092 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.3253, allocations: 164.4 kB / 0.5093 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.683e-05/0.3254, allocations: 16.56 kB / 0.5094 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.744e-05/0.3254, allocations: 17.44 kB / 0.5094 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.222e-05/0.3255, allocations: 83.19 kB / 0.5095 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.3257, allocations: 124.1 kB / 0.5096 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002881/0.3259, allocations: 255.2 kB / 0.5098 GB, free: 3.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.326, allocations: 0.7969 kB / 0.5098 GB, free: 3.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.326, allocations: 5.5 kB / 0.5098 GB, free: 3.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.326, allocations: 0 / 0.5098 GB, free: 3.508 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.0007098/0.3267, allocations: 0.5655 MB / 0.5104 GB, free: 3.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3267, allocations: 13.92 kB / 0.5104 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.628e-05/0.3268, allocations: 54.78 kB / 0.5104 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.913e-05/0.3268, allocations: 32.33 kB / 0.5105 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004092/0.3273, allocations: 332.6 kB / 0.5108 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.3273, allocations: 20.31 kB / 0.5108 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.3273, allocations: 17.97 kB / 0.5108 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.3277, allocations: 266.5 kB / 0.5111 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3277, allocations: 0 / 0.5111 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.3277, allocations: 12.05 kB / 0.5111 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.3278, allocations: 8.594 kB / 0.5111 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002497/0.328, allocations: 161.5 kB / 0.5112 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.329, allocations: 1.172 MB / 0.5124 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.3292, allocations: 81.89 kB / 0.5125 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.474e-05/0.3292, allocations: 30.92 kB / 0.5125 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.293e-05/0.3292, allocations: 1.156 kB / 0.5125 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.3293, allocations: 37.58 kB / 0.5125 GB, free: 1.293 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.3293, allocations: 0 / 0.5125 GB, free: 1.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005823/0.3299, allocations: 417.5 kB / 0.5129 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.3299, allocations: 78.84 kB / 0.513 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.3301, allocations: 253.6 kB / 0.5133 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.005e-06/0.3301, allocations: 25.7 kB / 0.5133 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.3302, allocations: 201 kB / 0.5135 GB, free: 484 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.3302, allocations: 26.5 kB / 0.5135 GB, free: 464 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-05/0.3303, allocations: 41.97 kB / 0.5135 GB, free: 432 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.351e-05/0.3304, allocations: 334.4 kB / 0.5139 GB, free: 100 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.198e-05/0.3304, allocations: 30.59 kB / 0.5139 GB, free: 88 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.3305, allocations: 114.3 kB / 0.514 GB, free: 15.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.3308, allocations: 165.6 kB / 0.5141 GB, free: 15.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3308, allocations: 0 / 0.5141 GB, free: 15.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003035/0.3311, allocations: 199.8 kB / 0.5143 GB, free: 15.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3311, allocations: 10.59 kB / 0.5143 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.3311, allocations: 7.094 kB / 0.5144 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.3311, allocations: 4.594 kB / 0.5144 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.3313, allocations: 41.52 kB / 0.5144 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.3313, allocations: 12.91 kB / 0.5144 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.924e-05/0.3314, allocations: 8.875 kB / 0.5144 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.3315, allocations: 7.562 kB / 0.5144 GB, free: 15.66 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.0001538/0.3316, allocations: 147 kB / 0.5146 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.544e-05/0.3317, allocations: 26.36 kB / 0.5146 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001754/0.3318, allocations: 94.83 kB / 0.5147 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3319, allocations: 1.859 kB / 0.5147 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3319, allocations: 1.406 kB / 0.5147 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3319, allocations: 4.656 kB / 0.5147 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005169/0.3324, allocations: 423.3 kB / 0.5151 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3324, allocations: 0 / 0.5151 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.732e-05/0.3325, allocations: 15.67 kB / 0.5151 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.3325, allocations: 1.5 kB / 0.5151 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.3325, allocations: 6.219 kB / 0.5151 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.3325, allocations: 1.719 kB / 0.5151 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3325, allocations: 5.469 kB / 0.5151 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002643/0.3328, allocations: 231.9 kB / 0.5153 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.05e-05/0.3329, allocations: 96.12 kB / 0.5154 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.3329, allocations: 5.953 kB / 0.5154 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.317e-05/0.333, allocations: 5.062 kB / 0.5154 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.333, allocations: 5.938 kB / 0.5155 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.3331, allocations: 6.312 kB / 0.5155 GB, free: 14.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001691/0.3332, allocations: 175.8 kB / 0.5156 GB, free: 14.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3332, allocations: 0 / 0.5156 GB, free: 14.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.3335, allocations: 38.94 kB / 0.5157 GB, free: 14.66 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.0005589/0.3341, allocations: 0.763 MB / 0.5164 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001915/0.3343, allocations: 84.8 kB / 0.5165 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3343, allocations: 0 / 0.5165 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.319e-05/0.3344, allocations: 35.25 kB / 0.5165 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000464/0.3348, allocations: 59.38 kB / 0.5166 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.3376, allocations: 2.31 MB / 0.5188 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004544/0.3381, allocations: 0.7665 MB / 0.5196 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.3382, allocations: 26.3 kB / 0.5196 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.3383, allocations: 73.88 kB / 0.5197 GB, free: 11.27 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3383, allocations: 0 / 0.5197 GB, free: 11.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02837/0.3667, allocations: 4.148 MB / 0.5237 GB, free: 10.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.299/8.666, allocations: 12.94 kB / 0.5237 GB, free: 10.7 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