Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007763/0.0007765, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.0007562/0.0007563, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.244/1.244, allocations: 223.3 MB / 241.2 MB, free: 5.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.274/0.274, allocations: 38.07 MB / 330.4 MB, free: 14.15 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003358/0.0003359, allocations: 8 kB / 400.1 MB, free: 9.254 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2343, allocations: 59.16 MB / 459.2 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.005041/0.2394, allocations: 5.14 MB / 464.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002867/0.2423, allocations: 2.036 MB / 466.4 MB, free: 25.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002688/0.2426, allocations: 24.47 kB / 466.4 MB, free: 25.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004261/0.2431, allocations: 145.4 kB / 466.6 MB, free: 25.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007006/0.2438, allocations: 350 kB / 466.9 MB, free: 25.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.2442, allocations: 202.1 kB / 467.1 MB, free: 24.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008005/0.245, allocations: 0.7173 MB / 467.8 MB, free: 24.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000413/0.2455, allocations: 309.1 kB / 468.1 MB, free: 24.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003592/0.2458, allocations: 242.6 kB / 468.4 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003406/0.2462, allocations: 267.4 kB / 468.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.654e-05/0.2463, allocations: 24.16 kB / 468.7 MB, free: 24.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.2464, allocations: 63 kB / 468.7 MB, free: 24.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.2466, allocations: 126.6 kB / 468.8 MB, free: 24.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.822e-05/0.2467, allocations: 122.2 kB / 469 MB, free: 24.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005267/0.2472, allocations: 0.4923 MB / 469.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2472, allocations: 0 / 469.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2472, allocations: 5.469 kB / 469.5 MB, free: 24.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.2472, allocations: 0 / 469.5 MB, free: 24.07 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001144/0.2484, allocations: 0.7536 MB / 470.2 MB, free: 23.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.2484, allocations: 9.406 kB / 470.2 MB, free: 23.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.629e-05/0.2485, allocations: 55.5 kB / 470.3 MB, free: 23.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006455/0.2492, allocations: 448.7 kB / 470.7 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.2492, allocations: 28.12 kB / 470.7 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.884e-05/0.2493, allocations: 48.12 kB / 470.8 MB, free: 23.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000661/0.25, allocations: 448.3 kB / 471.2 MB, free: 22.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.25, allocations: 8.906 kB / 471.2 MB, free: 22.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.747e-05/0.25, allocations: 16.88 kB / 471.2 MB, free: 22.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.2501, allocations: 10.8 kB / 471.3 MB, free: 22.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004545/0.2505, allocations: 274.3 kB / 471.5 MB, free: 22.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.2523, allocations: 1.857 MB / 473.4 MB, free: 21.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004296/0.2527, allocations: 255.2 kB / 473.6 MB, free: 21.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.2529, allocations: 85.67 kB / 473.7 MB, free: 21.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.2529, allocations: 3.844 kB / 473.7 MB, free: 21.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/0.2531, allocations: 171.4 kB / 473.9 MB, free: 20.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.013e-06/0.2531, allocations: 5.438 kB / 473.9 MB, free: 20.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001382/0.2545, allocations: 0.9125 MB / 474.8 MB, free: 20.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.2546, allocations: 137.3 kB / 474.9 MB, free: 20.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004094/0.255, allocations: 396.5 kB / 475.3 MB, free: 20.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.255, allocations: 31.33 kB / 475.4 MB, free: 19.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.2552, allocations: 277.5 kB / 475.6 MB, free: 19.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.044e-05/0.2552, allocations: 93.84 kB / 475.7 MB, free: 19.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.664e-05/0.2553, allocations: 5.375 kB / 475.7 MB, free: 19.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.541e-05/0.2554, allocations: 349 kB / 476.1 MB, free: 19.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.2555, allocations: 85.97 kB / 476.1 MB, free: 19.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.2557, allocations: 213.4 kB / 476.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.2559, allocations: 111.8 kB / 476.5 MB, free: 19.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2559, allocations: 1.719 kB / 476.5 MB, free: 19.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007092/0.2566, allocations: 431.8 kB / 476.9 MB, free: 18.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2566, allocations: 6.469 kB / 476.9 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2566, allocations: 5.344 kB / 476.9 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003548/0.257, allocations: 96.56 kB / 477 MB, free: 18.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.2572, allocations: 67.03 kB / 477.1 MB, free: 18.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.259, allocations: 1.825 MB / 478.9 MB, free: 17.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.2592, allocations: 16.94 kB / 478.9 MB, free: 17.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.2592, allocations: 20.83 kB / 478.9 MB, free: 17.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001635/0.2594, allocations: 203.6 kB / 479.1 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.868e-05/0.2594, allocations: 47.38 kB / 479.2 MB, free: 16.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004888/0.2599, allocations: 287.2 kB / 479.4 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.26, allocations: 8.094 kB / 479.5 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.26, allocations: 1.344 kB / 479.5 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.26, allocations: 1.406 kB / 479.5 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008244/0.2608, allocations: 0.7664 MB / 480.2 MB, free: 16.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2608, allocations: 1 kB / 480.2 MB, free: 16.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002065/0.261, allocations: 38.58 kB / 480.3 MB, free: 16.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001624/0.2612, allocations: 55.12 kB / 480.3 MB, free: 16.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.2612, allocations: 7.812 kB / 480.3 MB, free: 16.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008201/0.2621, allocations: 1.433 MB / 481.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2621, allocations: 1.312 kB / 481.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/0.2627, allocations: 0.4913 MB / 482.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.806e-05/0.2628, allocations: 136.3 kB / 482.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.805e-05/0.2628, allocations: 10.23 kB / 482.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.263, allocations: 17.06 kB / 482.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.63e-05/0.2631, allocations: 33.92 kB / 482.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.2631, allocations: 5.906 kB / 482.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002446/0.2634, allocations: 279.4 kB / 482.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2634, allocations: 1.031 kB / 482.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004458/0.2638, allocations: 108.6 kB / 482.8 MB, free: 13.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,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 (24): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007471/0.2646, allocations: 404.2 kB / 483.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007031/0.2653, allocations: 407.1 kB / 483.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2653, allocations: 5.281 kB / 483.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.2657, allocations: 233.7 kB / 483.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006291/0.2663, allocations: 117 kB / 484 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.2678, allocations: 1.367 MB / 485.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.2681, allocations: 0.8561 MB / 486.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.2683, allocations: 58.8 kB / 486.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.346e-05/0.2684, allocations: 35.02 kB / 486.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2684, allocations: 5.125 kB / 486.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of Templates: time 0.008158/0.2766, allocations: 5.658 MB / 491.9 MB, free: 6.559 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches