Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001389/0.001389, allocations: 174.9 kB / 8.348 MB, free: 0.7266 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.536/1.536, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008571/0.0008572, allocations: 87.14 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1753/0.1753, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.578e-05/1.579e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09498/0.09501, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3743/0.4694, allocations: 93.17 MB / 0.547 GB, free: 1.766 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.4697, allocations: 97.28 kB / 0.547 GB, free: 1.672 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01935/0.4891, allocations: 6.412 MB / 0.5533 GB, free: 11.2 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4892, allocations: 0 / 0.5533 GB, free: 11.2 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.314e-05/0.4892, allocations: 4 kB / 0.5533 GB, free: 11.2 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009318/0.4902, allocations: 0.5276 MB / 0.5538 GB, free: 10.62 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.4902, allocations: 8.031 kB / 0.5538 GB, free: 10.62 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.396e-05/0.4903, allocations: 43.56 kB / 0.5539 GB, free: 10.57 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001808/0.4921, allocations: 0.6457 MB / 0.5545 GB, free: 9.887 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.4922, allocations: 8 kB / 0.5545 GB, free: 9.879 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.4924, allocations: 23.98 kB / 0.5545 GB, free: 9.855 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003464/0.4927, allocations: 160.8 kB / 0.5547 GB, free: 9.699 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004141/0.4931, allocations: 257 kB / 0.5549 GB, free: 9.414 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.4932, allocations: 7.953 kB / 0.5549 GB, free: 9.406 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.4932, allocations: 0 / 0.5549 GB, free: 9.406 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.4932, allocations: 4 kB / 0.5549 GB, free: 9.402 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.4949, allocations: 1.243 MB / 0.5562 GB, free: 8.074 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.4952, allocations: 111.8 kB / 0.5563 GB, free: 7.938 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.734e-05/0.4952, allocations: 46.62 kB / 0.5563 GB, free: 7.883 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.4953, allocations: 4.156 kB / 0.5563 GB, free: 7.879 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.376e-05/0.4953, allocations: 42.48 kB / 0.5564 GB, free: 7.828 MB / 395.1 MB Notification: Performance of pre-optimization done (n=10): time 2.735e-06/0.4954, allocations: 0 / 0.5564 GB, free: 7.828 MB / 395.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009511/0.4963, allocations: 488.4 kB / 0.5568 GB, free: 7.297 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.094e-05/0.4964, allocations: 114.8 kB / 0.5569 GB, free: 7.16 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.4966, allocations: 202.2 kB / 0.5571 GB, free: 6.957 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.4967, allocations: 25.7 kB / 0.5571 GB, free: 6.926 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.4968, allocations: 191.8 kB / 0.5573 GB, free: 6.734 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.847e-05/0.4968, allocations: 47.39 kB / 0.5574 GB, free: 6.688 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.306e-06/0.4969, allocations: 0 / 0.5574 GB, free: 6.688 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.497, allocations: 326.8 kB / 0.5577 GB, free: 6.359 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.442e-05/0.497, allocations: 35.98 kB / 0.5577 GB, free: 6.324 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.4972, allocations: 120.4 kB / 0.5578 GB, free: 6.164 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.339e-05/0.4973, allocations: 55.92 kB / 0.5579 GB, free: 6.109 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.4973, allocations: 0 / 0.5579 GB, free: 6.109 MB / 395.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003737/0.4977, allocations: 209.9 kB / 0.5581 GB, free: 5.895 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.4977, allocations: 8 kB / 0.5581 GB, free: 5.887 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.547e-06/0.4977, allocations: 4 kB / 0.5581 GB, free: 5.883 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001347/0.4979, allocations: 28.8 kB / 0.5581 GB, free: 5.852 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/0.4982, allocations: 68.3 kB / 0.5582 GB, free: 5.785 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.4983, allocations: 8 kB / 0.5582 GB, free: 5.777 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.4984, allocations: 7.938 kB / 0.5582 GB, free: 5.77 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.4984, allocations: 11.98 kB / 0.5582 GB, free: 5.758 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.315e-05/0.4985, allocations: 108.9 kB / 0.5583 GB, free: 5.645 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.682e-05/0.4986, allocations: 19.72 kB / 0.5583 GB, free: 5.625 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002808/0.4989, allocations: 151.3 kB / 0.5585 GB, free: 5.473 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.4989, allocations: 0 / 0.5585 GB, free: 5.473 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4989, allocations: 11.95 kB / 0.5585 GB, free: 5.461 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.4989, allocations: 0 / 0.5585 GB, free: 5.461 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003541/0.4993, allocations: 246 kB / 0.5587 GB, free: 5.184 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4993, allocations: 0 / 0.5587 GB, free: 5.184 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.4994, allocations: 35.97 kB / 0.5588 GB, free: 5.148 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.4995, allocations: 0 / 0.5588 GB, free: 5.148 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.4995, allocations: 4 kB / 0.5588 GB, free: 5.145 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4995, allocations: 0 / 0.5588 GB, free: 5.145 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4995, allocations: 0 / 0.5588 GB, free: 5.145 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004306/0.4999, allocations: 386.7 kB / 0.5591 GB, free: 4.734 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.034e-05/0.5, allocations: 96.77 kB / 0.5592 GB, free: 4.621 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.664e-05/0.5001, allocations: 4 kB / 0.5592 GB, free: 4.617 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.5002, allocations: 3.953 kB / 0.5592 GB, free: 4.613 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.322e-05/0.5003, allocations: 16.05 kB / 0.5593 GB, free: 4.598 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.5003, allocations: 4 kB / 0.5593 GB, free: 4.594 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001434/0.5004, allocations: 157.9 kB / 0.5594 GB, free: 4.441 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5005, allocations: 4 kB / 0.5594 GB, free: 4.438 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.000364/0.5008, allocations: 40 kB / 0.5595 GB, free: 4.398 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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.000162/0.501, allocations: 105 kB / 0.5596 GB, free: 4.289 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0003575/0.5014, allocations: 202.3 kB / 0.5597 GB, free: 4.07 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5014, allocations: 4.25 kB / 0.5597 GB, free: 4.066 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 8.164e-05/0.5015, allocations: 51.92 kB / 0.5598 GB, free: 4.016 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.5019, allocations: 48.42 kB / 0.5598 GB, free: 3.969 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008711/0.5028, allocations: 424.9 kB / 0.5603 GB, free: 3.523 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.5032, allocations: 0.7796 MB / 0.561 GB, free: 2.719 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.5033, allocations: 30.06 kB / 0.561 GB, free: 2.691 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.79e-05/0.5034, allocations: 23.42 kB / 0.5611 GB, free: 2.668 MB / 395.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5034, allocations: 0 / 0.5611 GB, free: 2.668 MB / 395.1 MB Notification: Performance of Templates: time 0.00512/0.5085, allocations: 1.959 MB / 0.563 GB, free: 0.7148 MB / 395.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches