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.001533/0.001533, allocations: 113.9 kB / 17.69 MB, free: 5.305 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.001365/0.001365, allocations: 191 kB / 18.63 MB, free: 4.375 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.666/1.666, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1835/0.1835, allocations: 38.05 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 68.89 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1051, allocations: 58.05 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007403/0.1125, allocations: 5.167 MB / 463.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002919/0.1155, allocations: 1.994 MB / 465.5 MB, free: 148 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003065/0.1158, allocations: 15.88 kB / 465.5 MB, free: 132 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000605/0.1164, allocations: 146.9 kB / 465.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008201/0.1173, allocations: 361.8 kB / 466 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004869/0.1178, allocations: 221 kB / 466.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008228/0.1186, allocations: 0.7005 MB / 466.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004829/0.1191, allocations: 426.6 kB / 467.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00037/0.1195, allocations: 290.8 kB / 467.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003741/0.1199, allocations: 294.7 kB / 467.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.665e-05/0.12, allocations: 48 kB / 467.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.1201, allocations: 91.97 kB / 468 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.1203, allocations: 151.5 kB / 468.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002464/0.1206, allocations: 262.7 kB / 468.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006704/0.1213, allocations: 0.6541 MB / 469.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1213, allocations: 0 / 469.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1213, allocations: 0 / 469.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.1213, allocations: 0 / 469.1 MB, free: 12.52 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.001415/0.1227, allocations: 0.8312 MB / 469.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1228, allocations: 8.031 kB / 469.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.1229, allocations: 60.27 kB / 470 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007639/0.1236, allocations: 494.1 kB / 470.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.1237, allocations: 32.94 kB / 470.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.429e-05/0.1238, allocations: 36 kB / 470.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006385/0.1244, allocations: 457.1 kB / 471 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/0.1244, allocations: 11.92 kB / 471 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.899e-05/0.1245, allocations: 16 kB / 471 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.1245, allocations: 8 kB / 471 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004848/0.125, allocations: 274.3 kB / 471.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.1271, allocations: 1.858 MB / 473.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004894/0.1276, allocations: 247.7 kB / 473.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.1277, allocations: 82.98 kB / 473.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.1277, allocations: 3.938 kB / 473.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002701/0.128, allocations: 188.5 kB / 473.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.984e-06/0.128, allocations: 0 / 473.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001652/0.1297, allocations: 0.9025 MB / 474.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.991e-05/0.1298, allocations: 144.4 kB / 474.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.1302, allocations: 398.2 kB / 475.1 MB, free: 6.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.1303, allocations: 37.7 kB / 475.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.1304, allocations: 259.6 kB / 475.4 MB, free: 5.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.834e-05/0.1305, allocations: 90.66 kB / 475.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.1306, allocations: 69.69 kB / 475.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1307, allocations: 350.8 kB / 475.9 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.1309, allocations: 87.91 kB / 476 MB, free: 5.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.1311, allocations: 212.2 kB / 476.2 MB, free: 4.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003838/0.1315, allocations: 315.9 kB / 476.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1315, allocations: 4 kB / 476.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007985/0.1323, allocations: 437.6 kB / 476.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1324, allocations: 11.94 kB / 476.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1324, allocations: 4 kB / 476.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004284/0.1328, allocations: 92.77 kB / 477 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.1331, allocations: 67.84 kB / 477.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/0.1353, allocations: 2.014 MB / 479.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.1356, allocations: 20.05 kB / 479.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.1356, allocations: 20 kB / 479.1 MB, free: 1.789 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.0002184/0.1359, allocations: 197.6 kB / 479.3 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.784e-05/0.1359, allocations: 39.53 kB / 479.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005826/0.1365, allocations: 294 kB / 479.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1365, allocations: 7.984 kB / 479.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1365, allocations: 8 kB / 479.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1366, allocations: 3.984 kB / 479.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.1376, allocations: 0.7652 MB / 480.4 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1376, allocations: 0 / 480.4 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002479/0.1379, allocations: 43.97 kB / 480.5 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002091/0.1381, allocations: 52.75 kB / 480.5 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.1381, allocations: 11.98 kB / 480.5 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.1394, allocations: 1.547 MB / 482.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1394, allocations: 0 / 482.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007304/0.1401, allocations: 0.4923 MB / 482.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001517/0.1403, allocations: 132.6 kB / 482.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.874e-05/0.1403, allocations: 4 kB / 482.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.1406, allocations: 15.98 kB / 482.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.801e-05/0.1407, allocations: 27.91 kB / 482.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.1407, allocations: 4 kB / 482.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003082/0.141, allocations: 287.1 kB / 483 MB, free: 13.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.141, allocations: 0 / 483 MB, free: 13.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005354/0.1415, allocations: 116 kB / 483.2 MB, free: 13.49 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.0009139/0.1425, allocations: 403.9 kB / 483.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008793/0.1434, allocations: 399.2 kB / 483.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1434, allocations: 0 / 483.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.1438, allocations: 246.4 kB / 484.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006674/0.1444, allocations: 120.8 kB / 484.3 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.1462, allocations: 1.091 MB / 485.4 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.1467, allocations: 0.8543 MB / 486.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002427/0.147, allocations: 67.36 kB / 486.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.1471, allocations: 39.42 kB / 486.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1471, allocations: 0 / 486.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of Templates: time 0.01224/0.1593, allocations: 6.187 MB / 492.5 MB, free: 4.242 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 cvode -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