Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 110.9 kB / 17.29 MB, free: 6.059 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.001828/0.001828, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.031/2.031, allocations: 222.9 MB / 241.9 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1818/0.1818, allocations: 38.01 MB / 330 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 62.72 kB / 399 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1033, allocations: 58.05 MB / 457 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007788/0.1112, allocations: 5.447 MB / 462.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003062/0.1143, allocations: 1.667 MB / 464.1 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006514/0.115, allocations: 31.81 kB / 464.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005306/0.1155, allocations: 95.42 kB / 464.2 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009224/0.1165, allocations: 242.7 kB / 464.5 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004251/0.1169, allocations: 119.9 kB / 464.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009527/0.1179, allocations: 0.5896 MB / 465.2 MB, free: 204 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006012/0.1185, allocations: 386.7 kB / 465.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000555/0.1191, allocations: 243.1 kB / 465.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005855/0.1197, allocations: 243 kB / 466 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.1198, allocations: 40 kB / 466.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.12, allocations: 36 kB / 466.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002214/0.1202, allocations: 127.6 kB / 466.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004094/0.1207, allocations: 226.9 kB / 466.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006089/0.1213, allocations: 407.1 kB / 466.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1213, allocations: 0 / 466.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1213, allocations: 0 / 466.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.155e-05/0.1213, allocations: 4 kB / 466.9 MB, free: 14.51 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.002104/0.1235, allocations: 0.6953 MB / 467.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.1235, allocations: 19.91 kB / 467.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.1237, allocations: 44.38 kB / 467.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009529/0.1247, allocations: 404.1 kB / 468 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/0.1248, allocations: 62.64 kB / 468.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.1249, allocations: 32 kB / 468.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.126, allocations: 432.1 kB / 468.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.063e-05/0.1261, allocations: 4 kB / 468.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.737e-05/0.1262, allocations: 12 kB / 468.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.1262, allocations: 8 kB / 468.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008235/0.127, allocations: 273.9 kB / 468.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00336/0.1304, allocations: 1.845 MB / 470.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005404/0.131, allocations: 191.5 kB / 470.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.1312, allocations: 73.84 kB / 470.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.1313, allocations: 7.938 kB / 470.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.1313, allocations: 30.56 kB / 471 MB, free: 10.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 2.655e-06/0.1313, allocations: 0 / 471 MB, free: 10.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.002168/0.1335, allocations: 0.7021 MB / 471.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.396e-05/0.1336, allocations: 106.8 kB / 471.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005281/0.1342, allocations: 312.5 kB / 472.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001256/0.1343, allocations: 29.7 kB / 472.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/0.1346, allocations: 243.6 kB / 472.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.082e-05/0.1347, allocations: 71.27 kB / 472.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.1348, allocations: 69.92 kB / 472.5 MB, free: 8.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002975/0.1351, allocations: 338.8 kB / 472.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002917/0.1355, allocations: 72.61 kB / 472.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000387/0.1359, allocations: 201.5 kB / 473.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006644/0.1365, allocations: 294.1 kB / 473.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1366, allocations: 4 kB / 473.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001026/0.1376, allocations: 320 kB / 473.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/0.1376, allocations: 15.38 kB / 473.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.1377, allocations: 8.031 kB / 473.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.1377, allocations: 4 kB / 473.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005046/0.1382, allocations: 83.83 kB / 473.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001034/0.1383, allocations: 12 kB / 473.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.1387, allocations: 15.94 kB / 473.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/0.1388, allocations: 16 kB / 473.8 MB, free: 7.016 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003367/0.1391, allocations: 181.7 kB / 474 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.1393, allocations: 35.56 kB / 474 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006648/0.1399, allocations: 192.7 kB / 474.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.14, allocations: 4 kB / 474.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-05/0.14, allocations: 3.984 kB / 474.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.14, allocations: 3.984 kB / 474.2 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/0.1415, allocations: 0.6084 MB / 474.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.1415, allocations: 8.016 kB / 474.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.1417, allocations: 39.92 kB / 474.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.1418, allocations: 4 kB / 474.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.1418, allocations: 4 kB / 474.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1418, allocations: 4 kB / 474.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1418, allocations: 0 / 474.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006792/0.1425, allocations: 458.4 kB / 475.4 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.531e-05/0.1426, allocations: 112.7 kB / 475.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.345e-05/0.1426, allocations: 4 kB / 475.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.1429, allocations: 7.938 kB / 475.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.313e-05/0.1429, allocations: 15.98 kB / 475.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.143, allocations: 7.984 kB / 475.5 MB, free: 5.227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002332/0.1432, allocations: 223 kB / 475.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1432, allocations: 0 / 475.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004811/0.1437, allocations: 75.94 kB / 475.8 MB, free: 4.934 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001303/0.1438, allocations: 107.2 kB / 475.9 MB, free: 4.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004633/0.1443, allocations: 204.5 kB / 476.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1443, allocations: 0 / 476.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.1445, allocations: 79.91 kB / 476.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007165/0.1452, allocations: 100.9 kB / 476.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00191/0.1471, allocations: 1.061 MB / 477.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.1477, allocations: 0.8068 MB / 478.1 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.1478, allocations: 39.42 kB / 478.2 MB, free: 2.477 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1478, allocations: 0 / 478.2 MB, free: 2.477 MB / 350.1 MB Notification: Performance of Templates: time 0.008257/0.156, allocations: 4.504 MB / 482.7 MB, free: 14 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches