Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 109.4 kB / 17.28 MB, free: 6.219 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.002075/0.002075, allocations: 193.3 kB / 18.21 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.012/2.012, allocations: 222.9 MB / 241.9 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3269/0.3269, allocations: 38.03 MB / 330.1 MB, free: 9 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 61.14 kB / 399 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1569, allocations: 58.05 MB / 457 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.01361/0.1706, allocations: 6.323 MB / 463.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006266/0.1769, allocations: 2.298 MB / 465.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.1782, allocations: 31.81 kB / 465.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.1794, allocations: 143.2 kB / 465.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002174/0.1816, allocations: 386.1 kB / 466.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.1827, allocations: 215.7 kB / 466.4 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001962/0.1847, allocations: 0.8438 MB / 467.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.1858, allocations: 0.4928 MB / 467.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009519/0.1868, allocations: 350.6 kB / 468.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009537/0.1878, allocations: 358.6 kB / 468.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001932/0.188, allocations: 52 kB / 468.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004543/0.1885, allocations: 104 kB / 468.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003489/0.1888, allocations: 187.5 kB / 468.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000718/0.1896, allocations: 306.5 kB / 469 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001407/0.191, allocations: 0.5769 MB / 469.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.433e-05/0.191, allocations: 3.984 kB / 469.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.191, allocations: 3.938 kB / 469.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.625e-05/0.1911, allocations: 0 / 469.6 MB, free: 11.73 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00354/0.1946, allocations: 0.9088 MB / 470.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.747e-05/0.1947, allocations: 11.89 kB / 470.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002971/0.195, allocations: 64.19 kB / 470.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00155/0.1966, allocations: 494.1 kB / 471.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.692e-05/0.1967, allocations: 44.92 kB / 471.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.1969, allocations: 47.92 kB / 471.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.1984, allocations: 0.5173 MB / 471.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.1985, allocations: 0 / 471.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.659e-05/0.1985, allocations: 16 kB / 471.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/0.1987, allocations: 20.98 kB / 471.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.1997, allocations: 331.7 kB / 472.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004739/0.2045, allocations: 2.077 MB / 474.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000715/0.2052, allocations: 235.9 kB / 474.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.2055, allocations: 74.62 kB / 474.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.877e-05/0.2055, allocations: 7.984 kB / 474.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004431/0.206, allocations: 176.5 kB / 474.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 4.338e-06/0.206, allocations: 0 / 474.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003033/0.2091, allocations: 0.9104 MB / 475.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.2092, allocations: 132.5 kB / 475.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008955/0.2101, allocations: 430.1 kB / 476.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.2102, allocations: 33.69 kB / 476.1 MB, free: 4.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004014/0.2106, allocations: 295.6 kB / 476.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.2107, allocations: 90.73 kB / 476.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/0.2109, allocations: 78.03 kB / 476.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002219/0.2112, allocations: 358.7 kB / 476.9 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.2114, allocations: 84.83 kB / 477 MB, free: 3.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004433/0.2119, allocations: 221.8 kB / 477.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007679/0.2127, allocations: 325.7 kB / 477.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.2127, allocations: 4 kB / 477.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001522/0.2142, allocations: 441.6 kB / 478 MB, free: 2.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.2143, allocations: 11.94 kB / 478 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.2143, allocations: 7.984 kB / 478 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006951/0.215, allocations: 96.98 kB / 478.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004363/0.2155, allocations: 71.84 kB / 478.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003334/0.2188, allocations: 1.83 MB / 480 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005093/0.2194, allocations: 23.98 kB / 480 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.226e-05/0.2194, allocations: 12 kB / 480 MB, free: 0.6367 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004436/0.2199, allocations: 212.4 kB / 480.2 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.2201, allocations: 51.36 kB / 480.3 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009146/0.221, allocations: 284.5 kB / 480.6 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.221, allocations: 4 kB / 480.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.221, allocations: 0 / 480.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.221, allocations: 3.984 kB / 480.6 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.2231, allocations: 0.7644 MB / 481.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.2231, allocations: 12 kB / 481.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.2236, allocations: 51.91 kB / 481.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003433/0.224, allocations: 44.81 kB / 481.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.32e-05/0.224, allocations: 11.98 kB / 481.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/0.2261, allocations: 1.543 MB / 483 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.2261, allocations: 4.062 kB / 483 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.2273, allocations: 477.9 kB / 483.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002418/0.2276, allocations: 132.6 kB / 483.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.2277, allocations: 11.92 kB / 483.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003753/0.2281, allocations: 16 kB / 483.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.2282, allocations: 23.91 kB / 483.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/0.2282, allocations: 11.98 kB / 483.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000579/0.2288, allocations: 295.1 kB / 483.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 4e-07/0.2288, allocations: 3.938 kB / 484 MB, free: 12.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009283/0.2298, allocations: 112 kB / 484.1 MB, free: 12.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001555/0.2313, allocations: 396.3 kB / 484.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.2326, allocations: 407.2 kB / 484.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.2327, allocations: 0 / 484.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006108/0.2333, allocations: 250.2 kB / 485.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.2346, allocations: 133.8 kB / 485.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003786/0.2384, allocations: 1.421 MB / 486.6 MB, free: 9.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008285/0.2392, allocations: 0.8777 MB / 487.5 MB, free: 8.938 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.2395, allocations: 47.36 kB / 487.6 MB, free: 8.891 MB / 366.1 MB Notification: Performance of SimCode: time 1.272e-06/0.2395, allocations: 0 / 487.6 MB, free: 8.891 MB / 366.1 MB Notification: Performance of Templates: time 0.02141/0.2609, allocations: 8.795 MB / 496.4 MB, free: 124 kB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches