Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009805/0.0009807, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.001183/0.001183, allocations: 177 kB / 17.56 MB, free: 6.18 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.339/1.339, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1762/0.1762, allocations: 38.09 MB / 330.8 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003007/0.0003008, allocations: 11.94 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0977/0.09801, allocations: 59.16 MB / 459.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006375/0.1044, allocations: 5.905 MB / 465.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003487/0.1079, allocations: 2.283 MB / 468.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003947/0.1084, allocations: 31.81 kB / 468.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004966/0.1089, allocations: 143.1 kB / 468.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008993/0.1098, allocations: 378.1 kB / 468.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000678/0.1105, allocations: 222.8 kB / 468.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001275/0.1118, allocations: 1.059 MB / 469.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005205/0.1123, allocations: 406.7 kB / 470.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004189/0.1127, allocations: 286.7 kB / 470.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004319/0.1132, allocations: 326.6 kB / 470.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.587e-05/0.1132, allocations: 28 kB / 470.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.1134, allocations: 67.97 kB / 471 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.1136, allocations: 147.5 kB / 471.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002657/0.1139, allocations: 304.2 kB / 471.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007029/0.1146, allocations: 0.6889 MB / 472.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1146, allocations: 0 / 472.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1146, allocations: 0 / 472.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1146, allocations: 4 kB / 472.1 MB, free: 10.8 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001409/0.116, allocations: 0.7969 MB / 472.9 MB, free: 9.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1161, allocations: 8.031 kB / 472.9 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.1162, allocations: 64.19 kB / 473 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007813/0.117, allocations: 0.5017 MB / 473.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.145e-05/0.117, allocations: 29 kB / 473.5 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.1172, allocations: 48 kB / 473.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008061/0.118, allocations: 0.5134 MB / 474.1 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.118, allocations: 0 / 474.1 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.347e-05/0.1181, allocations: 23.98 kB / 474.1 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.583e-05/0.1181, allocations: 17 kB / 474.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005405/0.1187, allocations: 335.7 kB / 474.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002505/0.1212, allocations: 2.081 MB / 476.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004151/0.1216, allocations: 223.8 kB / 476.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.1218, allocations: 90.55 kB / 476.8 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.1218, allocations: 4 kB / 476.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.1221, allocations: 161.7 kB / 477 MB, free: 5.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.1221, allocations: 3.938 kB / 477 MB, free: 5.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001642/0.1238, allocations: 0.9209 MB / 477.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.816e-05/0.1238, allocations: 136.5 kB / 478 MB, free: 4.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004508/0.1243, allocations: 433.8 kB / 478.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.1243, allocations: 29.7 kB / 478.5 MB, free: 4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.1245, allocations: 291.9 kB / 478.8 MB, free: 3.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.362e-05/0.1246, allocations: 98.72 kB / 478.9 MB, free: 3.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.412e-05/0.1247, allocations: 37.7 kB / 478.9 MB, free: 3.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1248, allocations: 358.7 kB / 479.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.125, allocations: 88.83 kB / 479.4 MB, free: 3.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002456/0.1252, allocations: 221.8 kB / 479.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004146/0.1257, allocations: 321.7 kB / 479.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1257, allocations: 4 kB / 479.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008371/0.1265, allocations: 437.9 kB / 480.3 MB, free: 2.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.1266, allocations: 12.09 kB / 480.3 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1266, allocations: 4 kB / 480.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004268/0.127, allocations: 96.75 kB / 480.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/0.1273, allocations: 67.91 kB / 480.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.1292, allocations: 1.711 MB / 482.2 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.1295, allocations: 23.98 kB / 482.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.1296, allocations: 16 kB / 482.2 MB, free: 15.97 MB / 366.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: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002565/0.1298, allocations: 201.7 kB / 482.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.127e-05/0.1299, allocations: 47.44 kB / 482.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006116/0.1305, allocations: 288 kB / 482.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1305, allocations: 4 kB / 482.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1305, allocations: 0 / 482.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1305, allocations: 0 / 482.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.1317, allocations: 0.7762 MB / 483.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1317, allocations: 0 / 483.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.132, allocations: 59.84 kB / 483.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002057/0.1322, allocations: 48.75 kB / 483.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.1322, allocations: 15.92 kB / 483.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.1334, allocations: 1.437 MB / 485.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1335, allocations: 0 / 485.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006825/0.1341, allocations: 493.4 kB / 485.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.1343, allocations: 136.6 kB / 485.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.154e-05/0.1343, allocations: 8 kB / 485.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.1346, allocations: 15.98 kB / 485.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.235e-05/0.1346, allocations: 19.91 kB / 485.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.1347, allocations: 12 kB / 485.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000317/0.135, allocations: 299.1 kB / 486.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.135, allocations: 0 / 486.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000501/0.1355, allocations: 112 kB / 486.2 MB, free: 11.78 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0008623/0.1364, allocations: 406.6 kB / 486.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007238/0.1371, allocations: 394.6 kB / 487 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1371, allocations: 0 / 487 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.1375, allocations: 238.5 kB / 487.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007516/0.1382, allocations: 125.8 kB / 487.3 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/0.1402, allocations: 1.495 MB / 488.8 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.1406, allocations: 0.8818 MB / 489.7 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002424/0.1409, allocations: 64.23 kB / 489.8 MB, free: 8.258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.305e-05/0.141, allocations: 39.42 kB / 489.8 MB, free: 8.219 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.141, allocations: 0 / 489.8 MB, free: 8.219 MB / 366.1 MB Notification: Performance of Templates: time 0.01129/0.1523, allocations: 6.074 MB / 495.9 MB, free: 2.219 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches