Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 91.48 kB / 16.3 MB, free: 6.457 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.001504/0.001504, allocations: 180.6 kB / 17.2 MB, free: 6.34 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.23/1.23, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2697/0.2697, allocations: 38.07 MB / 330.3 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002987/0.0002988, allocations: 8 kB / 400 MB, free: 9.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2585, allocations: 59.16 MB / 459.1 MB, free: 30.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.005477/0.264, allocations: 6.105 MB / 465.2 MB, free: 25.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00372/0.2678, allocations: 2.74 MB / 468 MB, free: 23.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004969/0.2683, allocations: 44.66 kB / 468 MB, free: 23.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005768/0.2689, allocations: 217.6 kB / 468.2 MB, free: 23.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.2701, allocations: 0.4896 MB / 468.7 MB, free: 23.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006506/0.2708, allocations: 256.1 kB / 469 MB, free: 23.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008587/0.2716, allocations: 0.6649 MB / 469.6 MB, free: 23.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008674/0.2725, allocations: 0.7732 MB / 470.4 MB, free: 22.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004351/0.273, allocations: 352 kB / 470.8 MB, free: 22.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004656/0.2734, allocations: 381.7 kB / 471.1 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.254e-05/0.2735, allocations: 40.16 kB / 471.2 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004343/0.274, allocations: 248.8 kB / 471.4 MB, free: 22.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002421/0.2742, allocations: 262.9 kB / 471.7 MB, free: 22.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.2744, allocations: 181.3 kB / 471.8 MB, free: 22.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.2754, allocations: 1.067 MB / 472.9 MB, free: 21.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.983e-06/0.2754, allocations: 0 / 472.9 MB, free: 21.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2754, allocations: 1.062 kB / 472.9 MB, free: 21.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.2754, allocations: 0 / 472.9 MB, free: 21.85 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.001652/0.2771, allocations: 1.003 MB / 473.9 MB, free: 21.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.2771, allocations: 9.656 kB / 473.9 MB, free: 21.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005985/0.2777, allocations: 131.4 kB / 474 MB, free: 21.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.2788, allocations: 0.6479 MB / 474.7 MB, free: 20.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.011e-05/0.2789, allocations: 83.31 kB / 474.8 MB, free: 20.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.279, allocations: 67.42 kB / 474.8 MB, free: 20.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.2804, allocations: 0.95 MB / 475.8 MB, free: 20.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.2804, allocations: 7.297 kB / 475.8 MB, free: 20.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.412e-05/0.2805, allocations: 29.61 kB / 475.8 MB, free: 20.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.226e-05/0.2806, allocations: 58.91 kB / 475.9 MB, free: 20.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.2817, allocations: 0.7745 MB / 476.7 MB, free: 19.73 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003907/0.2856, allocations: 3.875 MB / 480.5 MB, free: 16.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006444/0.2862, allocations: 0.5241 MB / 481.1 MB, free: 16.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.2863, allocations: 3.469 kB / 481.1 MB, free: 16.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.2863, allocations: 49.81 kB / 481.1 MB, free: 16.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.794e-06/0.2863, allocations: 0 / 481.1 MB, free: 16.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.009473/0.2958, allocations: 3.967 MB / 485.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.2959, allocations: 109.8 kB / 485.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000544/0.2964, allocations: 0.5192 MB / 485.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.2965, allocations: 37.7 kB / 485.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.2966, allocations: 395.1 kB / 486.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.2967, allocations: 193.2 kB / 486.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.2968, allocations: 20.03 kB / 486.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.975e-05/0.2969, allocations: 370.8 kB / 486.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003649/0.2972, allocations: 277.8 kB / 487 MB, free: 11.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004095/0.2977, allocations: 0.5072 MB / 487.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004168/0.2981, allocations: 368.6 kB / 487.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2981, allocations: 7.938 kB / 487.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002533/0.3006, allocations: 1.545 MB / 489.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.3007, allocations: 8 kB / 489.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.3007, allocations: 8 kB / 489.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.302, allocations: 479.9 kB / 489.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.3023, allocations: 111.8 kB / 490 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008514/0.3108, allocations: 10.04 MB / 0.4883 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/0.3114, allocations: 31.98 kB / 0.4883 GB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.982e-05/0.3115, allocations: 32 kB / 0.4884 GB, free: 13.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (60): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004681/0.312, allocations: 309.6 kB / 0.4887 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3121, allocations: 59.25 kB / 0.4887 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.3149, allocations: 1.41 MB / 0.4901 GB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3149, allocations: 4 kB / 0.4901 GB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3149, allocations: 8 kB / 0.4901 GB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3149, allocations: 4.047 kB / 0.4901 GB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003972/0.3189, allocations: 2.348 MB / 0.4924 GB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3189, allocations: 0 / 0.4924 GB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.3192, allocations: 63.98 kB / 0.4925 GB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00127/0.3205, allocations: 455.9 kB / 0.4929 GB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.3205, allocations: 15.98 kB / 0.4929 GB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009337/0.3299, allocations: 9.76 MB / 0.5024 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3299, allocations: 3.984 kB / 0.5025 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003313/0.3332, allocations: 1.998 MB / 0.5044 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003048/0.3335, allocations: 196.3 kB / 0.5046 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.25e-05/0.3336, allocations: 12 kB / 0.5046 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003797/0.334, allocations: 27.94 kB / 0.5046 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.3342, allocations: 56.55 kB / 0.5047 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.3342, allocations: 19.98 kB / 0.5047 GB, free: 11.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004295/0.3346, allocations: 370.8 kB / 0.5051 GB, free: 11.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3346, allocations: 3.938 kB / 0.5051 GB, free: 11.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00103/0.3357, allocations: 252 kB / 0.5053 GB, free: 11.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * 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 (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002389/0.3359, allocations: 135.2 kB / 0.5054 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001915/0.3378, allocations: 1.458 MB / 0.5069 GB, free: 9.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3379, allocations: 0 / 0.5069 GB, free: 9.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.3392, allocations: 1.095 MB / 0.5079 GB, free: 8.273 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00068/0.3398, allocations: 166.4 kB / 0.5081 GB, free: 8.109 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.3423, allocations: 2.036 MB / 0.5101 GB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005925/0.3429, allocations: 1.068 MB / 0.5111 GB, free: 4.941 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003267/0.3432, allocations: 109.7 kB / 0.5112 GB, free: 4.832 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.946e-05/0.3433, allocations: 47.42 kB / 0.5113 GB, free: 4.789 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3433, allocations: 0 / 0.5113 GB, free: 4.789 MB / 382.1 MB Notification: Performance of Templates: time 0.01914/0.3624, allocations: 14.04 MB / 0.525 GB, free: 6.844 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches