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.000929/0.000929, allocations: 95.23 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.00115/0.00115, allocations: 175.4 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.173/1.173, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1572/0.1572, allocations: 38.09 MB / 330.8 MB, free: 8.492 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002925, allocations: 11.98 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08736/0.08767, allocations: 59.17 MB / 459.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.00593/0.09363, allocations: 5.897 MB / 465.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003212/0.09687, allocations: 2.283 MB / 468.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004859/0.0974, allocations: 31.81 kB / 468.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000504/0.09792, allocations: 147.1 kB / 468.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009128/0.09885, allocations: 374.2 kB / 468.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005421/0.0994, allocations: 223.6 kB / 468.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001155/0.1006, allocations: 1.063 MB / 469.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004918/0.1011, allocations: 398.8 kB / 470.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004554/0.1015, allocations: 286.7 kB / 470.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004588/0.102, allocations: 330.5 kB / 470.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.787e-05/0.1021, allocations: 28 kB / 470.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.1023, allocations: 67.98 kB / 471 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.1024, allocations: 151.5 kB / 471.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002672/0.1027, allocations: 296.2 kB / 471.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007132/0.1034, allocations: 0.6928 MB / 472.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1034, allocations: 0 / 472.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1035, allocations: 0 / 472.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.683e-05/0.1035, allocations: 8 kB / 472.1 MB, free: 10.74 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.001639/0.1051, allocations: 0.7968 MB / 472.9 MB, free: 9.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.1052, allocations: 8.031 kB / 472.9 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.1053, allocations: 64.19 kB / 473 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007641/0.1061, allocations: 0.4979 MB / 473.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.412e-05/0.1062, allocations: 29 kB / 473.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.1063, allocations: 48 kB / 473.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007421/0.107, allocations: 0.5212 MB / 474.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.107, allocations: 0 / 474.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.629e-05/0.1071, allocations: 19.94 kB / 474.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-05/0.1072, allocations: 21 kB / 474.1 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005145/0.1077, allocations: 339.7 kB / 474.4 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.11, allocations: 2.074 MB / 476.5 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003788/0.1104, allocations: 227.8 kB / 476.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.1105, allocations: 82.61 kB / 476.8 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.1106, allocations: 7.938 kB / 476.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.1108, allocations: 165.7 kB / 477 MB, free: 5.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.1108, allocations: 0 / 477 MB, free: 5.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001526/0.1124, allocations: 0.9246 MB / 477.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.1124, allocations: 136.5 kB / 478.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004747/0.1129, allocations: 429.8 kB / 478.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.113, allocations: 29.7 kB / 478.5 MB, free: 3.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/0.1132, allocations: 295.9 kB / 478.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.953e-05/0.1133, allocations: 94.88 kB / 478.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.16e-05/0.1133, allocations: 41.69 kB / 478.9 MB, free: 3.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1134, allocations: 354.7 kB / 479.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.1136, allocations: 88.83 kB / 479.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.1138, allocations: 221.8 kB / 479.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003701/0.1142, allocations: 321.7 kB / 479.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1142, allocations: 4 kB / 479.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008414/0.1151, allocations: 437.9 kB / 480.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1151, allocations: 11.98 kB / 480.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1151, allocations: 4 kB / 480.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003861/0.1155, allocations: 88.78 kB / 480.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.1157, allocations: 71.84 kB / 480.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/0.1176, allocations: 1.711 MB / 482.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.1178, allocations: 27.92 kB / 482.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.1179, allocations: 16 kB / 482.2 MB, free: 15.9 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.0002373/0.1181, allocations: 209.7 kB / 482.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.1182, allocations: 43.44 kB / 482.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005437/0.1187, allocations: 284.1 kB / 482.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.1187, allocations: 4 kB / 482.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.1187, allocations: 0 / 482.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1188, allocations: 3.984 kB / 482.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.1198, allocations: 0.7792 MB / 483.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1198, allocations: 7.984 kB / 483.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002469/0.1201, allocations: 43.92 kB / 483.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001991/0.1203, allocations: 48.8 kB / 483.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.1203, allocations: 15.88 kB / 483.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.1215, allocations: 1.437 MB / 485.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1215, allocations: 3.984 kB / 485.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006466/0.1221, allocations: 486 kB / 485.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.1223, allocations: 140.6 kB / 485.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.024e-05/0.1223, allocations: 8 kB / 485.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.1225, allocations: 12 kB / 485.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.865e-05/0.1226, allocations: 19.91 kB / 485.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.1227, allocations: 19.98 kB / 485.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002964/0.123, allocations: 295.1 kB / 486.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.123, allocations: 0 / 486.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004376/0.1234, allocations: 112 kB / 486.2 MB, free: 11.71 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.0008323/0.1242, allocations: 404 kB / 486.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007196/0.125, allocations: 394.6 kB / 487 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.125, allocations: 0 / 487 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003478/0.1253, allocations: 238.5 kB / 487.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007056/0.1261, allocations: 125.8 kB / 487.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.1279, allocations: 1.495 MB / 488.8 MB, free: 9.172 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.1283, allocations: 0.8857 MB / 489.7 MB, free: 8.262 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002422/0.1286, allocations: 68.22 kB / 489.8 MB, free: 8.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.874e-05/0.1287, allocations: 35.42 kB / 489.8 MB, free: 8.156 MB / 366.1 MB Notification: Performance of SimCode: time 6.212e-06/0.1287, allocations: 0 / 489.8 MB, free: 8.156 MB / 366.1 MB Notification: Performance of Templates: time 0.0106/0.1393, allocations: 6.076 MB / 495.9 MB, free: 2.152 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches