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.00121/0.00121, allocations: 110.3 kB / 16.51 MB, free: 6.715 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.00106/0.001061, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.338/1.338, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2495/0.2495, allocations: 38.04 MB / 329.3 MB, free: 9.078 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 60.83 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1101, allocations: 58.06 MB / 456.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007702/0.1178, allocations: 5.796 MB / 462 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00344/0.1213, allocations: 2.177 MB / 464.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005478/0.1219, allocations: 31.81 kB / 464.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006094/0.1225, allocations: 127.2 kB / 464.3 MB, free: 376 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009586/0.1235, allocations: 322.3 kB / 464.6 MB, free: 52 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005654/0.1241, allocations: 185.6 kB / 464.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.1252, allocations: 0.8409 MB / 465.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005096/0.1258, allocations: 357.7 kB / 466 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005145/0.1263, allocations: 258.8 kB / 466.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005037/0.1268, allocations: 282.8 kB / 466.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.528e-05/0.1269, allocations: 31.94 kB / 466.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002152/0.1271, allocations: 79.97 kB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.1273, allocations: 131.5 kB / 466.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002707/0.1276, allocations: 250.7 kB / 467 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006243/0.1282, allocations: 0.6307 MB / 467.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1282, allocations: 4 kB / 467.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1282, allocations: 0 / 467.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.076e-06/0.1282, allocations: 0 / 467.6 MB, free: 13.02 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.001595/0.1298, allocations: 0.8351 MB / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.1299, allocations: 8.031 kB / 468.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.13, allocations: 60.27 kB / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007259/0.1307, allocations: 466.2 kB / 469 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.1308, allocations: 28.98 kB / 469 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.404e-05/0.1308, allocations: 36 kB / 469 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006658/0.1315, allocations: 461.1 kB / 469.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.1316, allocations: 0 / 469.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.084e-05/0.1316, allocations: 12 kB / 469.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.1316, allocations: 12 kB / 469.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.1321, allocations: 286.3 kB / 469.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.1342, allocations: 1.866 MB / 471.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005183/0.1347, allocations: 247.6 kB / 471.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.1349, allocations: 83.05 kB / 472 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.1349, allocations: 11.94 kB / 472 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.1352, allocations: 188.6 kB / 472.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.1352, allocations: 0 / 472.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001612/0.1368, allocations: 0.906 MB / 473.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.1369, allocations: 132.5 kB / 473.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004473/0.1373, allocations: 401.8 kB / 473.6 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.1374, allocations: 29.7 kB / 473.6 MB, free: 6.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.1376, allocations: 263.7 kB / 473.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.994e-05/0.1377, allocations: 98.7 kB / 474 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.1378, allocations: 77.55 kB / 474.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1379, allocations: 350.8 kB / 474.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.1381, allocations: 87.91 kB / 474.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/0.1384, allocations: 214.8 kB / 474.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004262/0.1388, allocations: 315.9 kB / 475 MB, free: 5.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.1388, allocations: 4 kB / 475 MB, free: 5.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008363/0.1397, allocations: 429.3 kB / 475.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1397, allocations: 4.531 kB / 475.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1397, allocations: 4 kB / 475.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000434/0.1402, allocations: 96.75 kB / 475.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.1404, allocations: 67.91 kB / 475.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002283/0.1427, allocations: 1.826 MB / 477.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.143, allocations: 19.98 kB / 477.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.143, allocations: 16 kB / 477.5 MB, free: 2.496 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.0002352/0.1432, allocations: 197.7 kB / 477.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.977e-05/0.1433, allocations: 39.53 kB / 477.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005844/0.1439, allocations: 294 kB / 478 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1439, allocations: 3.984 kB / 478 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1439, allocations: 4 kB / 478 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1439, allocations: 3.938 kB / 478 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.145, allocations: 0.7764 MB / 478.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.145, allocations: 0 / 478.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.1453, allocations: 47.92 kB / 478.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002192/0.1455, allocations: 48.8 kB / 478.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.1455, allocations: 8 kB / 478.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/0.1468, allocations: 1.445 MB / 480.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1468, allocations: 0 / 480.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007188/0.1475, allocations: 0.4914 MB / 480.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.1477, allocations: 132.6 kB / 480.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.308e-05/0.1477, allocations: 11.94 kB / 480.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.148, allocations: 11.98 kB / 481 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.517e-05/0.1481, allocations: 27.97 kB / 481 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.1481, allocations: 8 kB / 481 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002989/0.1484, allocations: 283.1 kB / 481.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1484, allocations: 0 / 481.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000525/0.1489, allocations: 115.9 kB / 481.4 MB, free: 14.31 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.0008842/0.1498, allocations: 395.8 kB / 481.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008416/0.1507, allocations: 398.8 kB / 482.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1507, allocations: 0.875 kB / 482.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003858/0.1511, allocations: 246.6 kB / 482.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006823/0.1518, allocations: 117.4 kB / 482.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.1537, allocations: 1.274 MB / 483.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.1541, allocations: 0.8545 MB / 484.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002562/0.1543, allocations: 63.36 kB / 484.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.44e-05/0.1544, allocations: 35.42 kB / 484.7 MB, free: 11 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1544, allocations: 0 / 484.7 MB, free: 11 MB / 366.1 MB Notification: Performance of Templates: time 0.01139/0.1658, allocations: 5.875 MB / 490.6 MB, free: 5.199 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