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.00139/0.001391, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.001554/0.001554, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.362/1.362, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1766/0.1766, allocations: 38.04 MB / 329.4 MB, free: 9.055 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 55.14 kB / 398.3 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1099, allocations: 58.07 MB / 456.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007524/0.1174, allocations: 5.45 MB / 461.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.1201, allocations: 1.671 MB / 463.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000307/0.1204, allocations: 27.81 kB / 463.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000396/0.1209, allocations: 87.42 kB / 463.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006541/0.1215, allocations: 246.7 kB / 463.8 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003456/0.1219, allocations: 127.8 kB / 464 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007327/0.1226, allocations: 0.5799 MB / 464.5 MB, free: 236 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004934/0.1231, allocations: 386.7 kB / 464.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000334/0.1235, allocations: 239.1 kB / 465.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003247/0.1238, allocations: 247 kB / 465.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.328e-05/0.1239, allocations: 40 kB / 465.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.728e-05/0.124, allocations: 40 kB / 465.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.1241, allocations: 119.7 kB / 465.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002019/0.1243, allocations: 230.9 kB / 465.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004595/0.1248, allocations: 0.4984 MB / 466.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1248, allocations: 3.938 kB / 466.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1248, allocations: 0 / 466.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.1248, allocations: 0 / 466.3 MB, free: 14.44 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.001221/0.126, allocations: 0.703 MB / 467 MB, free: 13.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1261, allocations: 12.03 kB / 467 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.786e-05/0.1262, allocations: 44.38 kB / 467.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005422/0.1267, allocations: 404 kB / 467.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.787e-05/0.1268, allocations: 58.64 kB / 467.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.819e-05/0.1269, allocations: 39.98 kB / 467.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006918/0.1276, allocations: 432 kB / 468 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.1276, allocations: 3.984 kB / 468 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.429e-05/0.1277, allocations: 12 kB / 468 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.1277, allocations: 11.94 kB / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005052/0.1282, allocations: 278 kB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002158/0.1304, allocations: 1.838 MB / 470.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.1307, allocations: 187.5 kB / 470.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.1309, allocations: 70.61 kB / 470.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.1309, allocations: 4 kB / 470.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/0.131, allocations: 34.56 kB / 470.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.463e-06/0.131, allocations: 0 / 470.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.00128/0.1323, allocations: 0.7055 MB / 471.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.1323, allocations: 106.8 kB / 471.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003095/0.1327, allocations: 312.7 kB / 471.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.1327, allocations: 29.7 kB / 471.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.1328, allocations: 239.6 kB / 471.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.574e-05/0.1329, allocations: 78.92 kB / 471.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.133, allocations: 65.94 kB / 471.9 MB, free: 8.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1332, allocations: 342.8 kB / 472.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.1333, allocations: 72.62 kB / 472.3 MB, free: 8.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.1336, allocations: 197.5 kB / 472.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004072/0.134, allocations: 293.7 kB / 472.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.134, allocations: 0 / 472.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005189/0.1345, allocations: 336.2 kB / 473.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.1346, allocations: 11.94 kB / 473.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1346, allocations: 8 kB / 473.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.361e-05/0.1346, allocations: 11.94 kB / 473.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.1349, allocations: 67.91 kB / 473.2 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.1349, allocations: 15.92 kB / 473.3 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.1351, allocations: 16.22 kB / 473.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.1351, allocations: 20 kB / 473.3 MB, free: 6.934 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.0001789/0.1353, allocations: 177.8 kB / 473.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.1354, allocations: 31.56 kB / 473.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003977/0.1358, allocations: 199 kB / 473.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.1358, allocations: 4 kB / 473.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1358, allocations: 0 / 473.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1358, allocations: 3.984 kB / 473.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000866/0.1367, allocations: 0.6162 MB / 474.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.1367, allocations: 4 kB / 474.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002479/0.137, allocations: 39.97 kB / 474.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.137, allocations: 4 kB / 474.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.137, allocations: 4 kB / 474.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.137, allocations: 7.875 kB / 474.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.137, allocations: 0 / 474.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005726/0.1376, allocations: 455.9 kB / 474.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.469e-05/0.1377, allocations: 104.7 kB / 474.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.267e-05/0.1378, allocations: 4 kB / 474.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.138, allocations: 12.03 kB / 474.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.985e-05/0.138, allocations: 19.92 kB / 475 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.138, allocations: 4 kB / 475 MB, free: 5.148 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002026/0.1382, allocations: 215.1 kB / 475.2 MB, free: 4.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1383, allocations: 0 / 475.2 MB, free: 4.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003942/0.1387, allocations: 75.94 kB / 475.2 MB, free: 4.863 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.0001196/0.1388, allocations: 103.2 kB / 475.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004275/0.1392, allocations: 203.7 kB / 475.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1392, allocations: 0 / 475.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.1394, allocations: 83.84 kB / 475.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006648/0.1401, allocations: 97.89 kB / 475.7 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.1417, allocations: 1.026 MB / 476.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.1421, allocations: 0.8223 MB / 477.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.1423, allocations: 47.25 kB / 477.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.069e-05/0.1424, allocations: 31.44 kB / 477.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1424, allocations: 0 / 477.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of Templates: time 0.007227/0.1496, allocations: 3.364 MB / 481 MB, free: 15.09 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","/var/lib/jenkins/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