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.00115/0.00115, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001036/0.001036, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.322/1.322, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1752/0.1752, allocations: 38.04 MB / 330.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 59.33 kB / 400.2 MB, free: 33.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1065, allocations: 58.06 MB / 458.3 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008344/0.1149, allocations: 5.164 MB / 463.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004112/0.119, allocations: 1.994 MB / 465.5 MB, free: 180 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002777/0.1193, allocations: 15.94 kB / 465.5 MB, free: 164 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006084/0.12, allocations: 146.9 kB / 465.6 MB, free: 16 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001136/0.1211, allocations: 365.8 kB / 466 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007115/0.1219, allocations: 217.5 kB / 466.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.1231, allocations: 0.6967 MB / 466.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006927/0.1238, allocations: 438.5 kB / 467.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005248/0.1243, allocations: 282.8 kB / 467.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006764/0.125, allocations: 294.7 kB / 467.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.818e-05/0.1251, allocations: 48 kB / 467.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.1254, allocations: 91.97 kB / 468 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.1256, allocations: 151.5 kB / 468.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003388/0.1259, allocations: 270.6 kB / 468.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009035/0.1269, allocations: 0.6464 MB / 469.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1269, allocations: 0 / 469.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1269, allocations: 0 / 469.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1269, allocations: 0 / 469.1 MB, free: 12.55 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.001979/0.1289, allocations: 0.839 MB / 469.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.129, allocations: 11.89 kB / 469.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.1291, allocations: 60.28 kB / 470 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.1303, allocations: 486.1 kB / 470.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.598e-05/0.1304, allocations: 29 kB / 470.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.1305, allocations: 40 kB / 470.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.1316, allocations: 457.1 kB / 471 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.1317, allocations: 4 kB / 471 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.594e-05/0.1317, allocations: 23.98 kB / 471 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.1318, allocations: 8 kB / 471 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008567/0.1326, allocations: 270.3 kB / 471.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003664/0.1363, allocations: 1.866 MB / 473.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008873/0.1372, allocations: 246.7 kB / 473.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.1375, allocations: 91.05 kB / 473.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.033e-05/0.1376, allocations: 7.938 kB / 473.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004445/0.138, allocations: 180.5 kB / 473.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.835e-06/0.1381, allocations: 0 / 473.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.002713/0.1408, allocations: 0.9145 MB / 474.6 MB, free: 6.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.1409, allocations: 136.5 kB / 474.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007697/0.1417, allocations: 397.9 kB / 475.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.401e-05/0.1418, allocations: 29.7 kB / 475.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.142, allocations: 263.6 kB / 475.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.1422, allocations: 94.72 kB / 475.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.1424, allocations: 69.69 kB / 475.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.1426, allocations: 350.8 kB / 475.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002923/0.1429, allocations: 87.91 kB / 476 MB, free: 5.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004449/0.1434, allocations: 212.2 kB / 476.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007113/0.1441, allocations: 315.9 kB / 476.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1441, allocations: 0 / 476.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001504/0.1456, allocations: 437.2 kB / 476.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.1457, allocations: 4.531 kB / 476.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.1457, allocations: 8 kB / 476.9 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007415/0.1465, allocations: 96.77 kB / 477 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004242/0.1469, allocations: 63.84 kB / 477.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003826/0.1508, allocations: 2.005 MB / 479.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004065/0.1512, allocations: 19.98 kB / 479.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.057e-05/0.1513, allocations: 23.94 kB / 479.1 MB, free: 1.824 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.0003409/0.1516, allocations: 205.6 kB / 479.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.1517, allocations: 39.53 kB / 479.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009762/0.1527, allocations: 294.2 kB / 479.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.1527, allocations: 4 kB / 479.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.1528, allocations: 0 / 479.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.036e-05/0.1528, allocations: 11.92 kB / 479.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.1546, allocations: 0.7652 MB / 480.4 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.1546, allocations: 4 kB / 480.4 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004475/0.1551, allocations: 39.97 kB / 480.5 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003604/0.1555, allocations: 56.73 kB / 480.5 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.795e-05/0.1555, allocations: 11.98 kB / 480.5 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002199/0.1577, allocations: 1.551 MB / 482.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/0.1578, allocations: 4.031 kB / 482.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.1591, allocations: 496.1 kB / 482.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002293/0.1593, allocations: 128.6 kB / 482.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.273e-05/0.1594, allocations: 8 kB / 482.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004062/0.1598, allocations: 20.05 kB / 482.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.16, allocations: 23.91 kB / 482.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.501e-05/0.16, allocations: 8 kB / 482.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005254/0.1605, allocations: 287.1 kB / 483 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1606, allocations: 0 / 483 MB, free: 13.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000914/0.1615, allocations: 104 kB / 483.1 MB, free: 13.53 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.001603/0.1631, allocations: 416.5 kB / 483.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.1645, allocations: 395.3 kB / 483.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1645, allocations: 0 / 483.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006931/0.1652, allocations: 250.4 kB / 484.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.1664, allocations: 121.2 kB / 484.3 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.1695, allocations: 1.084 MB / 485.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006596/0.1702, allocations: 0.8582 MB / 486.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003907/0.1706, allocations: 63.34 kB / 486.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.1707, allocations: 35.42 kB / 486.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1707, allocations: 4 kB / 486.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of Templates: time 0.02131/0.1921, allocations: 6.186 MB / 492.5 MB, free: 4.273 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","/var/lib/jenkins1/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