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.001084/0.001084, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001048/0.001048, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.345/1.345, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1723/0.1723, allocations: 38.04 MB / 330.4 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 58.17 kB / 399.5 MB, free: 34.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09306/0.09432, allocations: 58.07 MB / 457.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007194/0.1016, allocations: 5.156 MB / 462.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003138/0.1047, allocations: 1.99 MB / 464.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003783/0.1051, allocations: 19.88 kB / 464.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005628/0.1057, allocations: 142.9 kB / 464.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00101/0.1068, allocations: 365.8 kB / 465.2 MB, free: 392 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005869/0.1074, allocations: 217.2 kB / 465.4 MB, free: 176 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009722/0.1084, allocations: 0.6968 MB / 466.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005559/0.1089, allocations: 422.5 kB / 466.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004745/0.1094, allocations: 306.8 kB / 466.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004819/0.1099, allocations: 282.8 kB / 467.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.497e-05/0.11, allocations: 48 kB / 467.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002415/0.1103, allocations: 95.92 kB / 467.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001602/0.1104, allocations: 147.5 kB / 467.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003545/0.1108, allocations: 266.7 kB / 467.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000679/0.1115, allocations: 0.6424 MB / 468.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1115, allocations: 0 / 468.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1115, allocations: 4 kB / 468.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.005e-05/0.1115, allocations: 0 / 468.3 MB, free: 13.28 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.001726/0.1133, allocations: 0.838 MB / 469.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1133, allocations: 15.88 kB / 469.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.1135, allocations: 56.28 kB / 469.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009002/0.1144, allocations: 474.1 kB / 469.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.1145, allocations: 25 kB / 469.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.017e-05/0.1146, allocations: 43.94 kB / 469.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006851/0.1153, allocations: 453.1 kB / 470.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.1153, allocations: 4 kB / 470.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.949e-05/0.1153, allocations: 12 kB / 470.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.1153, allocations: 12 kB / 470.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004853/0.1158, allocations: 286.3 kB / 470.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.118, allocations: 1.859 MB / 472.3 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005136/0.1185, allocations: 247.6 kB / 472.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.1187, allocations: 86.98 kB / 472.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.1187, allocations: 12.09 kB / 472.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002838/0.119, allocations: 180.6 kB / 472.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 3.216e-06/0.119, allocations: 0 / 472.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001768/0.1208, allocations: 0.9144 MB / 473.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.012e-05/0.1209, allocations: 132.5 kB / 473.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004302/0.1213, allocations: 397.9 kB / 474.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.1213, allocations: 29.7 kB / 474.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.1215, allocations: 267.6 kB / 474.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.191e-05/0.1216, allocations: 102.7 kB / 474.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.1217, allocations: 65.7 kB / 474.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1219, allocations: 350.8 kB / 475.1 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.122, allocations: 91.84 kB / 475.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/0.1223, allocations: 212.2 kB / 475.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000449/0.1227, allocations: 315.9 kB / 475.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1227, allocations: 4 kB / 475.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008661/0.1236, allocations: 433.3 kB / 476.1 MB, free: 4.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1236, allocations: 4.531 kB / 476.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1237, allocations: 8 kB / 476.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004125/0.1241, allocations: 88.77 kB / 476.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.1243, allocations: 67.91 kB / 476.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002527/0.1269, allocations: 2.021 MB / 478.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.1271, allocations: 20 kB / 478.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.1272, allocations: 12 kB / 478.3 MB, free: 2.566 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.0002238/0.1274, allocations: 201.6 kB / 478.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.79e-05/0.1275, allocations: 43.59 kB / 478.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005732/0.128, allocations: 298 kB / 478.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.1281, allocations: 7.984 kB / 478.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1281, allocations: 0 / 478.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.1281, allocations: 4 kB / 478.9 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.1292, allocations: 0.7687 MB / 479.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1293, allocations: 0 / 479.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.1295, allocations: 43.92 kB / 479.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001962/0.1297, allocations: 56.78 kB / 479.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.1298, allocations: 11.94 kB / 479.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.1311, allocations: 1.543 MB / 481.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1311, allocations: 4.031 kB / 481.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007535/0.1318, allocations: 499.2 kB / 481.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.132, allocations: 132.6 kB / 481.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.755e-05/0.132, allocations: 15.98 kB / 481.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.1323, allocations: 12 kB / 481.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.457e-05/0.1323, allocations: 23.91 kB / 482 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.1324, allocations: 11.98 kB / 482 MB, free: 14.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002951/0.1327, allocations: 279.1 kB / 482.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1327, allocations: 0 / 482.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004944/0.1332, allocations: 116 kB / 482.4 MB, free: 14.26 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.0008819/0.1341, allocations: 387.6 kB / 482.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009586/0.135, allocations: 419.1 kB / 483.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.135, allocations: 0 / 483.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004275/0.1355, allocations: 246.4 kB / 483.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007223/0.1362, allocations: 141.1 kB / 483.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.1382, allocations: 1.128 MB / 484.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004452/0.1387, allocations: 0.8543 MB / 485.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.1388, allocations: 39.42 kB / 485.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1388, allocations: 0 / 485.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of Templates: time 0.01179/0.1506, allocations: 8.185 MB / 493.7 MB, free: 2.969 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/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