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.001091/0.001091, allocations: 112.3 kB / 16.92 MB, free: 5.859 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.001084/0.001084, allocations: 187.5 kB / 17.85 MB, free: 5.164 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.327/1.327, allocations: 222.9 MB / 241.5 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.2169/0.2169, allocations: 38.04 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 60.27 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09135, allocations: 58.08 MB / 456.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007172/0.09857, allocations: 5.685 MB / 462.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002925/0.1015, allocations: 2.126 MB / 464.7 MB, free: 212 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002459/0.1018, allocations: 19.88 kB / 464.7 MB, free: 192 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005345/0.1023, allocations: 170.8 kB / 464.9 MB, free: 20 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008758/0.1033, allocations: 421.6 kB / 465.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005238/0.1038, allocations: 251.4 kB / 465.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009409/0.1047, allocations: 0.8409 MB / 466.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005662/0.1053, allocations: 496.7 kB / 466.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000421/0.1058, allocations: 349.4 kB / 467.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004164/0.1062, allocations: 342.6 kB / 467.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.046e-05/0.1063, allocations: 56 kB / 467.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.1065, allocations: 103.9 kB / 467.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.1066, allocations: 179.5 kB / 467.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002928/0.107, allocations: 302.5 kB / 468.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006721/0.1076, allocations: 0.7359 MB / 468.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1076, allocations: 0 / 468.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1077, allocations: 0 / 468.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1077, allocations: 0 / 468.9 MB, free: 11.98 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.001581/0.1093, allocations: 0.894 MB / 469.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.1093, allocations: 11.89 kB / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.1094, allocations: 64.19 kB / 469.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007581/0.1102, allocations: 0.4943 MB / 470.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.1102, allocations: 32.98 kB / 470.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.1103, allocations: 47.91 kB / 470.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007315/0.1111, allocations: 0.5173 MB / 470.9 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.1111, allocations: 3.938 kB / 471 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.264e-05/0.1112, allocations: 16 kB / 471 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.64e-05/0.1112, allocations: 20.98 kB / 471 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005209/0.1118, allocations: 331.7 kB / 471.3 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.1142, allocations: 2.077 MB / 473.4 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004417/0.1147, allocations: 239.6 kB / 473.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.1148, allocations: 81.02 kB / 473.7 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.1149, allocations: 4 kB / 473.7 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002756/0.1152, allocations: 172.5 kB / 473.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.674e-06/0.1152, allocations: 0 / 473.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001863/0.117, allocations: 0.9092 MB / 474.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.107e-05/0.1171, allocations: 136.5 kB / 474.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005467/0.1177, allocations: 433.8 kB / 475.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.1177, allocations: 33.64 kB / 475.4 MB, free: 5.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/0.118, allocations: 295.8 kB / 475.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.804e-05/0.1181, allocations: 90.73 kB / 475.7 MB, free: 4.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.1182, allocations: 78.03 kB / 475.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.1184, allocations: 358.8 kB / 476.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.1186, allocations: 84.83 kB / 476.3 MB, free: 4.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.1189, allocations: 225.8 kB / 476.5 MB, free: 3.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004483/0.1193, allocations: 321.6 kB / 476.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.1194, allocations: 8 kB / 476.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009478/0.1203, allocations: 445.3 kB / 477.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.1203, allocations: 8.562 kB / 477.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1204, allocations: 4 kB / 477.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004113/0.1208, allocations: 88.78 kB / 477.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/0.121, allocations: 71.91 kB / 477.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002273/0.1233, allocations: 1.829 MB / 479.2 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.1237, allocations: 23.98 kB / 479.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.774e-05/0.1237, allocations: 12 kB / 479.3 MB, free: 0.8945 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: 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.0003249/0.124, allocations: 213.7 kB / 479.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.237e-05/0.1241, allocations: 47.38 kB / 479.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005586/0.1247, allocations: 282.1 kB / 479.8 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1247, allocations: 4 kB / 479.8 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1247, allocations: 3.938 kB / 479.8 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.1247, allocations: 3.984 kB / 479.8 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1259, allocations: 0.7786 MB / 480.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/0.1259, allocations: 4 kB / 480.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002601/0.1262, allocations: 43.86 kB / 480.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002161/0.1264, allocations: 56.8 kB / 480.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.1264, allocations: 11.94 kB / 480.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001361/0.1278, allocations: 1.547 MB / 482.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1278, allocations: 0 / 482.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007207/0.1285, allocations: 482.5 kB / 482.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.1287, allocations: 136.6 kB / 482.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.243e-05/0.1287, allocations: 7.938 kB / 482.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002129/0.129, allocations: 8 kB / 482.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.321e-05/0.129, allocations: 23.97 kB / 482.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.1291, allocations: 11.98 kB / 482.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003467/0.1294, allocations: 291.1 kB / 483.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1294, allocations: 4 kB / 483.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005248/0.13, allocations: 124 kB / 483.3 MB, free: 12.58 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.0009294/0.1309, allocations: 391.3 kB / 483.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007733/0.1317, allocations: 398.7 kB / 484.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1317, allocations: 3.938 kB / 484.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003498/0.1321, allocations: 250.4 kB / 484.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007126/0.1328, allocations: 141 kB / 484.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.1348, allocations: 1.189 MB / 485.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.1353, allocations: 0.8816 MB / 486.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002403/0.1355, allocations: 68.22 kB / 486.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.577e-05/0.1356, allocations: 31.44 kB / 486.6 MB, free: 9.316 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1356, allocations: 4 kB / 486.6 MB, free: 9.312 MB / 366.1 MB Notification: Performance of Templates: time 0.01179/0.1474, allocations: 6.449 MB / 493.1 MB, free: 2.938 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