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.0008521/0.0008521, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0009451/0.0009452, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.163/1.163, allocations: 223.3 MB / 241.6 MB, free: 14.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.1533/0.1533, allocations: 38.08 MB / 330.8 MB, free: 8.523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003234, allocations: 10.27 kB / 400.7 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08876/0.08911, allocations: 59.16 MB / 459.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005094/0.09423, allocations: 4.79 MB / 464.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.09654, allocations: 1.655 MB / 466.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003636/0.09693, allocations: 27.81 kB / 466.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003864/0.09733, allocations: 99.41 kB / 466.5 MB, free: 456 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000666/0.09801, allocations: 250.7 kB / 466.7 MB, free: 204 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.09829, allocations: 99.83 kB / 466.8 MB, free: 104 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008045/0.09911, allocations: 0.6346 MB / 467.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.09935, allocations: 131.4 kB / 467.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.09964, allocations: 167.1 kB / 467.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003793/0.1, allocations: 207.1 kB / 467.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/0.1001, allocations: 12 kB / 467.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.277e-05/0.1001, allocations: 16 kB / 468 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.1003, allocations: 87.66 kB / 468 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.1005, allocations: 204.7 kB / 468.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003143/0.1008, allocations: 354.6 kB / 468.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1008, allocations: 0 / 468.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1008, allocations: 0 / 468.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1008, allocations: 0 / 468.6 MB, free: 14.3 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.0008959/0.1017, allocations: 0.601 MB / 469.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.1018, allocations: 12.03 kB / 469.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.859e-05/0.1018, allocations: 48.31 kB / 469.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005358/0.1024, allocations: 375.7 kB / 469.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.1024, allocations: 20.5 kB / 469.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.361e-05/0.1025, allocations: 31.98 kB / 469.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004616/0.103, allocations: 334.2 kB / 470 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.103, allocations: 4 kB / 470 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.702e-05/0.103, allocations: 12 kB / 470 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.103, allocations: 4 kB / 470 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000309/0.1033, allocations: 213.4 kB / 470.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.1048, allocations: 1.482 MB / 471.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003847/0.1052, allocations: 202.3 kB / 471.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.1054, allocations: 75.53 kB / 472 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.1054, allocations: 4 kB / 472 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.1054, allocations: 42.56 kB / 472 MB, free: 10.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.402e-06/0.1054, allocations: 7.938 kB / 472 MB, free: 10.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001137/0.1066, allocations: 0.6853 MB / 472.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.327e-05/0.1067, allocations: 132.5 kB / 472.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003372/0.107, allocations: 309.7 kB / 473.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.1071, allocations: 33.7 kB / 473.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.1072, allocations: 216.2 kB / 473.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.036e-05/0.1073, allocations: 71.02 kB / 473.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.005e-05/0.1074, allocations: 29.7 kB / 473.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1075, allocations: 338.8 kB / 473.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.983e-05/0.1076, allocations: 51.95 kB / 473.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.1078, allocations: 152.8 kB / 474 MB, free: 8.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.1081, allocations: 227.7 kB / 474.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1081, allocations: 0 / 474.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004282/0.1085, allocations: 253.3 kB / 474.5 MB, free: 7.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1086, allocations: 8.031 kB / 474.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1086, allocations: 7.938 kB / 474.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.1086, allocations: 7.938 kB / 474.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003542/0.109, allocations: 83.89 kB / 474.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000881/0.1099, allocations: 1.286 MB / 475.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.11, allocations: 15.92 kB / 475.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.11, allocations: 8 kB / 475.9 MB, free: 6.352 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.0001577/0.1102, allocations: 161.8 kB / 476.1 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.119e-05/0.1103, allocations: 39.69 kB / 476.1 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/0.1106, allocations: 188.3 kB / 476.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1106, allocations: 4 kB / 476.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.1106, allocations: 0 / 476.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1106, allocations: 4 kB / 476.3 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007147/0.1113, allocations: 0.5401 MB / 476.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.1114, allocations: 4 kB / 476.8 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.1116, allocations: 43.95 kB / 476.9 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1116, allocations: 0 / 476.9 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.1116, allocations: 8 kB / 476.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.1116, allocations: 7.984 kB / 476.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1116, allocations: 0 / 476.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004861/0.1121, allocations: 498.4 kB / 477.4 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.51e-05/0.1122, allocations: 104.8 kB / 477.5 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.1123, allocations: 8 kB / 477.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.1125, allocations: 0 / 477.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.1125, allocations: 15.98 kB / 477.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.1125, allocations: 8 kB / 477.5 MB, free: 4.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002098/0.1127, allocations: 223.1 kB / 477.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1127, allocations: 0 / 477.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003979/0.1131, allocations: 67.98 kB / 477.8 MB, free: 4.352 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 0.0001027/0.1133, allocations: 103.2 kB / 477.9 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003339/0.1136, allocations: 155.7 kB / 478 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1136, allocations: 0.875 kB / 478 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.1137, allocations: 64.05 kB / 478.1 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007261/0.1145, allocations: 96.41 kB / 478.2 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.1159, allocations: 1.037 MB / 479.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.1163, allocations: 0.8031 MB / 480 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001946/0.1165, allocations: 46.95 kB / 480.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.474e-05/0.1166, allocations: 31.44 kB / 480.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1166, allocations: 0 / 480.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of Templates: time 0.006405/0.123, allocations: 3.048 MB / 483.2 MB, free: 14.95 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches