Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006762/0.0006763, allocations: 92.53 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.0007391/0.0007391, allocations: 173.6 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.175/1.175, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.156/0.156, allocations: 38.09 MB / 330.8 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003374, allocations: 8 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08351/0.08387, allocations: 59.16 MB / 459.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.004454/0.08836, allocations: 4.604 MB / 464.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.09001, allocations: 1.11 MB / 465.6 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.09027, allocations: 23.81 kB / 465.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.09043, allocations: 43.69 kB / 465.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004859/0.09092, allocations: 219.1 kB / 465.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.09114, allocations: 91.83 kB / 466 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006571/0.09181, allocations: 0.7987 MB / 466.8 MB, free: 164 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.09202, allocations: 130.9 kB / 466.9 MB, free: 36 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/0.0923, allocations: 179.2 kB / 467.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003801/0.09269, allocations: 271.1 kB / 467.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.334e-05/0.09273, allocations: 12 kB / 467.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.713e-05/0.09278, allocations: 16 kB / 467.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.09292, allocations: 139.6 kB / 467.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001585/0.09309, allocations: 184.8 kB / 467.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002779/0.09337, allocations: 350.5 kB / 468 MB, free: 14.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.09338, allocations: 0 / 468 MB, free: 14.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.09339, allocations: 0 / 468 MB, free: 14.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.0934, allocations: 0 / 468 MB, free: 14.9 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008684/0.09427, allocations: 0.601 MB / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.09432, allocations: 15.95 kB / 468.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.643e-05/0.09439, allocations: 36.56 kB / 468.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004153/0.09481, allocations: 351.8 kB / 469 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.09484, allocations: 32.67 kB / 469.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.427e-05/0.0949, allocations: 27.91 kB / 469.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004529/0.09536, allocations: 348.7 kB / 469.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.09538, allocations: 7.938 kB / 469.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/0.09542, allocations: 15.98 kB / 469.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-05/0.09551, allocations: 24.55 kB / 469.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.09587, allocations: 246 kB / 469.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.09728, allocations: 1.378 MB / 471.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003003/0.09759, allocations: 161.1 kB / 471.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.09779, allocations: 105.7 kB / 471.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.09781, allocations: 4 kB / 471.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.09784, allocations: 34.56 kB / 471.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.452e-06/0.09785, allocations: 0 / 471.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001161/0.09901, allocations: 0.7668 MB / 472.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.09906, allocations: 77.11 kB / 472.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.09933, allocations: 304.4 kB / 472.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.09935, allocations: 29.7 kB / 472.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.09948, allocations: 215.6 kB / 472.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.748e-05/0.09952, allocations: 55.39 kB / 472.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.09957, allocations: 29.7 kB / 472.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.09967, allocations: 338.8 kB / 473.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.09978, allocations: 63.95 kB / 473.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.09994, allocations: 168.8 kB / 473.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.1002, allocations: 256.6 kB / 473.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1002, allocations: 0 / 473.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004421/0.1007, allocations: 317.3 kB / 474 MB, free: 8.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1007, allocations: 4 kB / 474 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1007, allocations: 15.92 kB / 474 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/0.1009, allocations: 48.83 kB / 474 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.1011, allocations: 51.91 kB / 474.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.1022, allocations: 1.491 MB / 475.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.1023, allocations: 15.98 kB / 475.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.1024, allocations: 11.94 kB / 475.6 MB, free: 6.711 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001495/0.1025, allocations: 173.7 kB / 475.8 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.331e-05/0.1026, allocations: 23.81 kB / 475.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003729/0.1029, allocations: 244.3 kB / 476 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.103, allocations: 4 kB / 476 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.103, allocations: 3.938 kB / 476 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.103, allocations: 0 / 476 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007615/0.1037, allocations: 0.6326 MB / 476.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1038, allocations: 0 / 476.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.735e-05/0.1039, allocations: 31.95 kB / 476.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/0.104, allocations: 56.8 kB / 476.8 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.1041, allocations: 11.98 kB / 476.8 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.1051, allocations: 1.491 MB / 478.3 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1052, allocations: 3.938 kB / 478.3 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004599/0.1056, allocations: 412 kB / 478.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.493e-05/0.1057, allocations: 104.8 kB / 478.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.1057, allocations: 8 kB / 478.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.1059, allocations: 7.984 kB / 478.8 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.965e-05/0.1059, allocations: 15.92 kB / 478.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.1059, allocations: 4 kB / 478.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000173/0.1061, allocations: 211.1 kB / 479 MB, free: 3.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1061, allocations: 0 / 479 MB, free: 3.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.1064, allocations: 68.06 kB / 479.1 MB, free: 2.973 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.734e-05/0.1065, allocations: 105.2 kB / 479.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004744/0.107, allocations: 295.3 kB / 479.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.107, allocations: 0 / 479.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003052/0.1073, allocations: 214.6 kB / 479.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004515/0.1078, allocations: 52.62 kB / 479.7 MB, free: 2.289 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.1088, allocations: 0.9115 MB / 480.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.1092, allocations: 0.8106 MB / 481.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.1093, allocations: 46.95 kB / 481.5 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.614e-05/0.1094, allocations: 23.44 kB / 481.5 MB, free: 448 kB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1094, allocations: 0 / 481.5 MB, free: 448 kB / 350.1 MB Notification: Performance of Templates: time 0.005488/0.1149, allocations: 2.79 MB / 484.3 MB, free: 13.67 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches