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.001609/0.001609, allocations: 109.6 kB / 16.92 MB, free: 6.145 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.001948/0.001948, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.361/1.361, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1717/0.1717, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 62.88 kB / 398.8 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1096, allocations: 58.06 MB / 456.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007394/0.117, allocations: 5.156 MB / 462 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003259/0.1203, allocations: 1.998 MB / 464 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000244/0.1206, allocations: 15.88 kB / 464 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000475/0.121, allocations: 146.9 kB / 464.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007692/0.1219, allocations: 369.8 kB / 464.5 MB, free: 364 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004592/0.1223, allocations: 218.4 kB / 464.7 MB, free: 148 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000964/0.1233, allocations: 0.685 MB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005772/0.1239, allocations: 438.5 kB / 465.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003884/0.1243, allocations: 290.8 kB / 466.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003689/0.1247, allocations: 294.3 kB / 466.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.252e-05/0.1248, allocations: 48 kB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.1249, allocations: 87.92 kB / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.1251, allocations: 147.5 kB / 466.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002487/0.1254, allocations: 278.7 kB / 467 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000645/0.126, allocations: 0.6308 MB / 467.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.126, allocations: 0 / 467.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.126, allocations: 4 kB / 467.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1261, allocations: 0 / 467.6 MB, free: 13.27 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.001535/0.1276, allocations: 0.8429 MB / 468.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.1276, allocations: 15.89 kB / 468.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.833e-05/0.1277, allocations: 56.28 kB / 468.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006618/0.1284, allocations: 470.1 kB / 469 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.1285, allocations: 33 kB / 469 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.963e-05/0.1285, allocations: 36 kB / 469.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006981/0.1292, allocations: 453.1 kB / 469.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.1293, allocations: 4 kB / 469.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.1293, allocations: 16 kB / 469.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.1293, allocations: 8 kB / 469.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004497/0.1298, allocations: 286.3 kB / 469.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00219/0.132, allocations: 1.859 MB / 471.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005174/0.1325, allocations: 255.5 kB / 471.9 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.1327, allocations: 90.98 kB / 472 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.1327, allocations: 7.938 kB / 472 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.133, allocations: 176.5 kB / 472.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.133, allocations: 4 kB / 472.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001746/0.1347, allocations: 0.9027 MB / 473.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.051e-05/0.1348, allocations: 132.5 kB / 473.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004258/0.1353, allocations: 402.2 kB / 473.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.1354, allocations: 33.7 kB / 473.6 MB, free: 6.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002508/0.1356, allocations: 271.8 kB / 473.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.659e-05/0.1357, allocations: 90.66 kB / 474 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.1359, allocations: 69.69 kB / 474.1 MB, free: 6.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.136, allocations: 354.7 kB / 474.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.1362, allocations: 87.91 kB / 474.5 MB, free: 5.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/0.1364, allocations: 208.2 kB / 474.7 MB, free: 5.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/0.1368, allocations: 315.9 kB / 475 MB, free: 5.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.1369, allocations: 8 kB / 475 MB, free: 5.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008096/0.1377, allocations: 425.6 kB / 475.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1377, allocations: 8 kB / 475.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.1377, allocations: 7.984 kB / 475.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004298/0.1382, allocations: 92.95 kB / 475.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.1384, allocations: 67.91 kB / 475.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0025/0.1409, allocations: 2.018 MB / 477.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.1412, allocations: 16 kB / 477.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/0.1412, allocations: 20.05 kB / 477.7 MB, free: 2.543 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 (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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002391/0.1415, allocations: 201.6 kB / 477.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.025e-05/0.1415, allocations: 43.52 kB / 477.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006079/0.1422, allocations: 298 kB / 478.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1422, allocations: 4 kB / 478.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1422, allocations: 0 / 478.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1422, allocations: 0 / 478.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.1432, allocations: 0.7726 MB / 479 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1433, allocations: 0 / 479 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.1435, allocations: 43.92 kB / 479 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000236/0.1437, allocations: 52.8 kB / 479.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.1438, allocations: 11.94 kB / 479.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001373/0.1452, allocations: 1.551 MB / 480.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1452, allocations: 0 / 480.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007486/0.1459, allocations: 0.4954 MB / 481.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.1461, allocations: 132.6 kB / 481.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.327e-05/0.1461, allocations: 8 kB / 481.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.1464, allocations: 12 kB / 481.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.455e-05/0.1465, allocations: 23.91 kB / 481.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.1465, allocations: 15.98 kB / 481.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003006/0.1468, allocations: 283.1 kB / 481.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1468, allocations: 4 kB / 481.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005379/0.1473, allocations: 104 kB / 481.7 MB, free: 14.24 MB / 366.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 (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.0008736/0.1482, allocations: 391.8 kB / 482.1 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.1493, allocations: 419.1 kB / 482.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.1493, allocations: 4 kB / 482.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.1497, allocations: 242.4 kB / 482.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006803/0.1504, allocations: 135.9 kB / 482.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.1522, allocations: 1.095 MB / 483.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004149/0.1526, allocations: 0.8582 MB / 484.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002275/0.1528, allocations: 67.36 kB / 484.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.18e-05/0.1529, allocations: 39.42 kB / 484.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1529, allocations: 0 / 484.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of Templates: time 0.01236/0.1653, allocations: 6.197 MB / 491.1 MB, free: 4.949 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches