Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 101 kB / 17.59 MB, free: 5.422 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.001118/0.001119, allocations: 191.3 kB / 18.51 MB, free: 4.5 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.3/1.3, 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.178/0.178, allocations: 38.03 MB / 330.4 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 69.2 kB / 399.5 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08567, allocations: 58.05 MB / 457.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005977/0.09169, allocations: 4.537 MB / 462.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.09385, allocations: 1.491 MB / 463.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002676/0.09413, allocations: 15.88 kB / 463.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004203/0.09456, allocations: 115.2 kB / 463.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006958/0.09529, allocations: 274.4 kB / 464 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002803/0.09559, allocations: 115.8 kB / 464.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006789/0.09628, allocations: 0.498 MB / 464.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/0.09654, allocations: 167.8 kB / 464.7 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000274/0.09682, allocations: 207.1 kB / 464.9 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003217/0.09715, allocations: 207.1 kB / 465.1 MB, free: 424 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.166e-05/0.09721, allocations: 28 kB / 465.2 MB, free: 396 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.187e-05/0.09729, allocations: 24 kB / 465.2 MB, free: 372 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.0974, allocations: 99.66 kB / 465.3 MB, free: 272 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.09759, allocations: 183.1 kB / 465.5 MB, free: 88 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003793/0.09798, allocations: 378.6 kB / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.09799, allocations: 0 / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.098, allocations: 0 / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.09802, allocations: 0 / 465.8 MB, free: 15.71 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001044/0.09907, allocations: 0.6593 MB / 466.5 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.09911, allocations: 12.03 kB / 466.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.964e-05/0.09919, allocations: 40.47 kB / 466.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005556/0.09975, allocations: 379.6 kB / 466.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.09979, allocations: 28.5 kB / 466.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.054e-05/0.09984, allocations: 24 kB / 467 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004602/0.1003, allocations: 338.2 kB / 467.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1003, allocations: 3.938 kB / 467.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.1004, allocations: 12 kB / 467.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.1004, allocations: 8 kB / 467.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.1007, allocations: 201.5 kB / 467.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.1022, allocations: 1.49 MB / 469 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003814/0.1026, allocations: 202.3 kB / 469.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.1027, allocations: 71.55 kB / 469.3 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.1028, allocations: 4 kB / 469.3 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.1028, allocations: 42.48 kB / 469.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.1028, allocations: 4 kB / 469.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001049/0.1039, allocations: 0.6879 MB / 470 MB, free: 11.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.104, allocations: 132.5 kB / 470.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.1043, allocations: 317.6 kB / 470.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.1043, allocations: 33.7 kB / 470.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.1044, allocations: 215.8 kB / 470.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.391e-05/0.1045, allocations: 67.33 kB / 470.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.936e-05/0.1046, allocations: 57.67 kB / 470.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1047, allocations: 342.8 kB / 471.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.705e-05/0.1048, allocations: 51.97 kB / 471.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.105, allocations: 140.9 kB / 471.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.1052, allocations: 223.9 kB / 471.6 MB, free: 9.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1052, allocations: 4 kB / 471.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000363/0.1056, allocations: 252.9 kB / 471.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.1056, allocations: 8.438 kB / 471.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1056, allocations: 8 kB / 471.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.1057, allocations: 11.88 kB / 471.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003568/0.106, allocations: 79.89 kB / 471.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008099/0.1068, allocations: 1.369 MB / 473.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.107, allocations: 11.98 kB / 473.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.107, allocations: 12 kB / 473.3 MB, free: 7.602 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.1072, allocations: 166.3 kB / 473.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.524e-05/0.1073, allocations: 31.62 kB / 473.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002946/0.1076, allocations: 192.4 kB / 473.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.1076, allocations: 4 kB / 473.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.1076, allocations: 0 / 473.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1076, allocations: 8 kB / 473.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007062/0.1083, allocations: 0.5563 MB / 474.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1083, allocations: 0 / 474.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002181/0.1086, allocations: 35.98 kB / 474.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.1086, allocations: 4 kB / 474.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.1086, allocations: 4 kB / 474.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.1086, allocations: 4 kB / 474.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1086, allocations: 0 / 474.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004168/0.109, allocations: 0.4897 MB / 474.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.876e-05/0.1091, allocations: 108.8 kB / 474.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.1091, allocations: 4 kB / 474.9 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.1094, allocations: 4 kB / 474.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.213e-05/0.1094, allocations: 15.92 kB / 474.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1094, allocations: 7.938 kB / 474.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001948/0.1096, allocations: 231.2 kB / 475.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1096, allocations: 0 / 475.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004088/0.11, allocations: 56 kB / 475.2 MB, free: 5.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 9.803e-05/0.1101, allocations: 107.1 kB / 475.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003937/0.1105, allocations: 176.4 kB / 475.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1105, allocations: 0 / 475.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.1107, allocations: 71.84 kB / 475.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006996/0.1114, allocations: 96.89 kB / 475.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001359/0.1127, allocations: 0.8508 MB / 476.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1131, allocations: 0.799 MB / 477.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.607e-05/0.1131, allocations: 27.44 kB / 477.3 MB, free: 3.402 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1132, allocations: 4 kB / 477.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of Templates: time 0.007451/0.1206, allocations: 4.718 MB / 482.1 MB, free: 14.7 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches